by Editorial | Aug 26, 2021 | Grade 11, Grade 11 - OOP, Grade 12, Grade 12 - OOP
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...
by Editorial | Aug 16, 2021 | Grade 11 - Date time, Grade 12
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...
by Editorial | Aug 15, 2021 | Grade 11, Grade 11 - Date 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...
by Editorial | Aug 15, 2021 | Grade 10, Grade 11, Grade 12
There are times when we wish our Java code would run a lot slower e.g. when we want to count down from 10 to 0 with 1-second intervals. Here we can use “Thread.sleep(milliseconds)” see line 22 below. Note that the sleep period is not precise as your...
by Editorial | Aug 14, 2021 | Grade 11, Grade 11 - OOP
Java – Three class template. In the grade 11 exam you are expected to write applications with at least three classes i.e. A UI class. Creates the manager class. Calls the methods it needs. May have some input and output. A manager class for all your methods. A...
by Editorial | Aug 5, 2021 | Grade 11, Grade 12
JSON is a file format or text-based data structure that we can use with, or in place, of text files. JSON is intended to replace file format XML which you may have come across before. Here is a video explaining JSON Click here IT teacher Sandra De Lange shared this...