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 – IT PAT IEB Everything
Grade 12 IT PAT IEB - Everything - Overview Your IEB IT PAT for grade 12 is made up of four phases. Phase One and Two are the data modelling phases. Phase Three is the coding and Phase Four the testing. Phase One – The project specifications. What your application...
Gr 11 – Array as parameter
A typed method can only return one value. (Yes, a method MAY have several return statements but only one of them will execute depending on the condition.) Sometimes we need to return more than one value. To get around the limitation above we can return one array, that...
Gr 12 – All about SSD
New to the grade 12 2021 IT Theory syllabus is more up-to-date information about SSD ie SATA SSD and PCIe SSD. Also covers the form factor M.2 and NVMe, both SATA and PCIe. Here is an awesome YouTube video on the topic. All about SSD
Gr 12 – Critical Algorithms
You need to be able to code these algorithms quickly. Links have some solutions. 1) Read from a text file (CSV) into a one dimensional array - text file only has one value per line. 2) Read from a text file (CSV) into an array of objects - text file is more like a...
Gr 11 – NetBeans Shortcuts
NetBeans can be very helpful - sometimes toooo helpful which is why we start coding in jGRASP. Here are some shortcuts to begin with . . . psvm <tab> - public static void main(String[]args) sout <tab> - System.out.println(" ") for <tab> - the simple...
Gr 12 – Java Cheat Sheet 2
After marking 100s of Java practical exams I prepared this handout. Things you must do, and things you must not do when coding in Java. Click here
Gr 12 – Bubble Sort code
You have watched the video and you now understand how the bubblesort algorithm works. You understand why sorting integers is straightforward and why we need to use "compareTo" when sorting String. Now you just want the code . . . Click here for bubble sort code -...
Gr 11 – Reading in a text file
Grade 11 - Reading in a text file into an array or into parallel arrays (array sets). Without a delimiter and with a delimiter. Grade 12 - Reading in a text file into an array of objects GRADE 11 1) Reading in a simple text file using the Scanner class. We create a...
Gr 12 – Text and Scanner
Being able to read in a text file into an array of objects using the Scanner class is mission-critical in the final grade 12 practical exam paper. Here are some examples for you to practice with. 1) This text file has 5 fields ie Order, Restaurant, Description,...
Gr 12 – Four class with inheritance2
A Full Solution for a program with four classes, with inheritance. Scenario: A array of dog objects. Two types of dogs i.e. regular "dogs" and "working dogs", based on Carol Lewis' inheritance presentation. The UI class with the main method The Manager class with all...
Gr 12 – Four class with inheritance
A Bare Bones** solution for a program with four classes, with inheritance. Scenario: An event for contestants, some with disabilities and some without. Create an array of contestant objects; Contestants is the superclass with ContestantsP being the subclass...
Gr 10 – Java Core
Java Core concepts - Java 101 Java for grade 10 learners from January to mid-year exams. Below are four PowerPoint presentations/shows covering all Java core concepts. Download them and use them with the "Java by Example" textbook pages 1 to page 28. Java Core 1 -...
Tr – IDE’s and SQL
jGRASP I use jGRASP for grade 10 and the beginning of Grade 11. This forces the learner to code from first principles. I have noticed that universities use jGRASP, NotePad++, and even Notepad for their first-year students (thus following the same path of “first...
Gr 10 – Input Processing Output
A simple one-class, one-method calculator program that demonstrates INPUT, PROCESSING, and OUTPUT. Keep these sections separate even when working with larger and more complex programs. Also, keep your prompts and messages useful and user-friendly. Employ good layout...
Gr 11 – Array Random Scanner
This series of programs offer an integrated approach i.e. learning arrays, random numbers, reading from a text file, and Object Orientated Programming (OOP) as single progression from the first example program to the last. The first one is a one-class program with...