JAVA TEACHER FOR STUDENTS
All the Java material you need as an IEB Information Technology (IT) student in South Africa.
Java Teacher does focus on IEB material for South African students doing grade 10, 11 and matric computer science but the resources in this website will assist first year IT university students as well.
How to use this site
Java Teacher is not a sequential Java textbook. Instead, it is a Java and SQL encyclopedia.
There are two ways to get help.
- On the right, you will find the topics sorted by grades.
- On the top right you will find a search bar where you can search by keywords eg class diagram, rounding, tracetables, debug etc
- This site is based on the Java by Example approach – less explanation and more examples. View or download the coded examples and study them, code them, run them, edit them, break them . . . this is how professional coders learn.
- There are two “Java by Example” textbooks that are a companion to this website. These textbooks offer an sequential learning experience grade by grade.
Java Teacher is passionately built and supported by Steve Eilertsen, an IT teacher at a private school in Johannesburg.
“This is my give-back strategy for IT learners who are passionate and gifted but do not have access to a suitable teacher.”
Online tutoring is available for matric learners in preperation for the PAT, Prelims and Finals for the remainder of 2026.
Gr 12 – SQLite
SQLite is a serverless SQL solution which makes it perfect for your grade 12 PAT. It is also suitable for a LAN with tight security restrictions. SQLite is open source and is perhaps the most used code on the planet - it is even in your browser software. Most of the...
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 – Practice Prelim Java
Create a four-class program - a single array of contestant objects with inheritance - some contestants have donated and some have not. UI class , manager class, contestant class and donor class which is a sub class of contestants Contestants - Fields and datatypes...
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 12 – date/time text file
Reading records from a text file.Three class program creating an array of people objects - uses LocalDate class. Fields are as follows - First Name, Last Name, Date of Birth. NOTE: The date in the text file is in default date format for LocalDate i.e. "yyyy-MM-dd" ...
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...
Gr 10,11,12 – Pause
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 computer is...
Gr 11 – Bare Bones 3 Class
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...
Gr 12 – IEB 2020 exam papers
Here are the 2020 IEB IT exam papers with marking guidelines ((copyright IEB) Click here for theory. Here for the appendix for the theory paper Click here for practical Section A: SQL files - Database HopeDB MsAccess.mdb JavaDB MySQL Section B: Java clients...
Gr 11,12 – JSON
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...
Gr 11,12 – Windows More
It is difficult to understand IT Theory if you don't understand your own Windows computer. What type of processor do you have? Does it hyperthread? How much physical RAM and how much virtual RAM do you have? Are your USB ports 2.0 or 3.0? Does your computer boot using...
Gr 12 – Deep Dark Web
Everything you need to know about the deep web, the dark web, SEO, Tor, blockchain, Tor and cryptocurrency. Click here
Gr 11 – Nested loops with Debug
Nested loops can be difficult to visualize and are easily misunderstood. Here is a presentation that uses the Step function in the Debug mode of jGRASP to show you exactly how 3 nested loops interact. Click here
Gr 11 – Search array
Searching an array in Java Searching for a value in an unsorted array is a standard algorithm that loops from the first element and moves to the last element. These are all two-class programs using an OOP approach where arrays are passed as parameters. Here the...