GRADE 11
JAVA MATERIAL FOR GRADE 11 STUDENTS
Gr 10/11/12 – Boolean Logic
Boolean Logic. AND OR and NOT. Search engines, Expressions. Functions. Truth tables with 2 and 3 variables. Click here for part one Two more examples
Gr 11, 12 – Debug with NetBeans
Using the Java Debugger in NetBeans is not as easy as it looks. Here is a demo with a four class program that uses inheritance. Click here to download If your knowledge of Java inheritance is not good perhaps you should watch this presentation first. It also...
Gr 10 11- GUIs 101
Teacher's Calculator Learning how to create GUIs in Java takes your coding to the next level and empowers you to start your Grade 12 PAT project. Up to this point your coding has had to run sequentially from top to bottom without user interventions. The big advantage...
Gr All – Generate random
Being able in Java to generate a random number, from an arbitrary number, to another arbitrary number (from lower bound to upper bound). Note that the lower bound is included and the upper bound is excluded. Example: If the lower bound is 2 and upper bound is 15, the...
Gr 11 – Critical Algorithms
You must be able to code these algorithms quickly. Click on links for some of the solutions offered as a download. Determine if a number is odd or even. Find the bigger of two values. Swop two values around. Check username and password - allow or disallow access....
Gr 12 – GUI Cheatsheet
When coding your Java GUIs in JFrameForm you will need the same lines of code over and over again. Because GUIs are only in the PAT, you do not have to memorize structure or syntax; you can just use a cheatsheet to remind you how to structure each line of code. Here...
Gr 11 – GUIs 102
The weather station project - Grade 11 This Java project is similar to the grade 10 project but a much higher level of sophistication is required - in how the four text files are read in for example. The grade 11 version uses 4 arrays which the grade 10 version does...
Gr 11,12 – Class Diagrams (UML)
Class diagrams are a critical part of any OOP exam in both grade 11 and 12. In the practical exam paper, it is part of the question and must be coded (followed) exactly. In the theory paper, you will need to be able to create your own class diagram according to the...
Gr 12 – Date/time format
There are times when you need to present a stored value in a different format . . . Real number example - 8.987578. Here you may prefer to say 8.99 Date example - "2018-1-1". Here you may prefer to say "1 January 2018" Java has a number of String formatting methods...
Gr 11 – Date and time
We can use String for simple date-time tasks ie 23/05/2021 - we can use String methods like substring to extract information like date, month and year. When we need the current data and time from the system clock, or we need to do date/time arithmetic, we need...