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.

  1. On the right, you will find the topics sorted by grades.
  2. On the top right you will find a search bar where you can search by keywords eg class diagram, rounding, tracetables, debug etc
  3.  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.
  4. There are two “Java by Example” textbooks that are a companion to this website. These textbooks offer an sequential learning experience grade by grade.

Steve Eilertsensteve.eilertsen@gmail.com

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...

read more

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...

read more

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" ...

read more

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...

read more

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...

read more

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...

read more

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...

read more