GRADE 11
JAVA MATERIAL FOR GRADE 11 STUDENTS
Gr11 12 – Data Validation
Data Validation Overview. V1 Validation first, followed by verification. Validation – does the data match the template? Example: The date template could be “yyyy-MM-dd” Verification – the data does match the template but is it valid? Example: “2026-14-13” matches the...
Gr11 12 – SQL database
It is easy to think that a database has some sort of logic, intelligence and self-awareness. It is does not. A database is like a suitcase of clothes. Some items "go with" other items but the clothes themselves do not understand their relationship with one another....
Gr 11 – Rounding off
Being able to round a real number (double number) in Java off to a certain number of decimal places will be required in both the grade 11 and 12 practical exams. NOTE: When rounding off using these String based methods the accuacy of the origial number does not...
GR 11 12 – GUI design
In your practical Java coding projects attention must be given to GUI design. This is not only important for appearance but because a badly designed interface is prone to user errors. Appearance - Colour. Your GUIs should have a primary colour, a secondary colour and...
Installing Java NetBeans jGRASP
Java is maintained and developed by Oracle NOTE: Do not install onto a laptop that is FULL of movies and games. You hard drive must not be more than 70% full. Delete . . . Apple is not recommended because the textbooks, tutorials and notes are all based on a Windows...
Gr 11 12 Not !
In Java "not" is a bit awkward when used with a String method like "equals" if (name.equals("steve") { } is easy to understand. If the name equals "steve" then execute the code block that follows. What about if the name does not equal steve? if ( !...
Gr 11 – Switch Case
Complex "if-then-else" statements are needed when there are many options e.g. consider all the options in a menu. Fortunately, there is a better way when a lot of options are needed i.e. the "Switch-Case-Break" construct. It works exactly the same as "if-else" but its...
Gr 10 11 – SQL summary
Here is a paried down SQL summary suitable for grade 10 and 11. Version 10 Click here
Gr 11, 12 – SQL tips
SQL TIPS for exams. STUDY the database first (at least 5 full minutes). Study both the data and the fields. Know how many records are in each table so that you can recognize any potential errors in the returned dataset. The better you understand the database, the...
Gr 11 – OOP, String, LocalTime, write to file
Asks for your full name and ID number. Determines the time right now. It reformats the name. It reformats the date of birth from the ID number. It determines the gender from the ID number. It creates a single output String which it prints to both the monitor and an...