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 10 – Reading text file
If you use a "one class, one main method" approach to grade 10 Java, this is a good end-of-year exercise revising the work done during the year. This program reads in a text file of "learner houses" and "money raised". It totals the amount raised per house, and then...
Gr 10 – All about loops
Here are 8 looping Java programs in a Notepad ++ format. They feature the "for loop" and the "while loop". Some run and some do not and some are infinite loops. Click here for the code Class Loops with not run because when using JOptionPane the input arrives as a...
Gr 12 – Theory revision 2
Once you know your IT theory work, then it is time to move over to the summary theory cheat sheet followed by the category cheat sheet. Use the "summary cheat sheet version 21" 12 hours before the exam. Concentrate on the content and the definitions. Click here Use...
Gr 12 – Theory revision
IT Theory revision, overviews and cheatsheets for your IEB Theory tests and exams. NB: These are cheatsheets - they are most useful when you have studied your work thoroughly from a more detailed text book already. Forty IT terms you need to know. Theory key concepts...
Installing Java NetBeans jGRASP
Java is maintained and developed by Oracle NOTE: Do not install onto a laptop that is FULL of movies and games. You hard drive must not be more than 70% full. Delete . . . Apple is not recommended because the textbooks, tutorials and notes are all based on a Windows...
Gr 12 – OOP prelim practice
.Here is an OOP practical practice exercise called Big Claw Adventures. The solution requires 4 classes - a UI class, a manager class, a parent class and a child class Follow the four steps. Answer the 14 questions. Mark your own work from the provided solutions....
Gr 11 12 Not !
In Java "not" is a bit awkward when used with a String method like "equals" if (name.equals("steve") { } is easy to understand. If the name equals "steve" then execute the code block that follows. What about if the name does not equal steve? if ( !...
Gr 11 – Switch Case
Complex "if-then-else" statements are needed when there are many options e.g. consider all the options in a menu. Fortunately, there is a better way when a lot of options are needed i.e. the "Switch-Case-Break" construct. It works exactly the same as "if-else" but its...
Gr 12 OOP theory prac notes
Here are Java OOP theory summary notes and Java OOP practical notes. These notes are not my own but were given to me by one of my students so I do not know who the original author is OOP theory OOP practical
Gr 10 11 – SQL summary
Here is a paried down SQL summary suitable for grade 10 and 11. Version 10 Click here
Gr 10, 11 – OOP Java textbook
One thing I have learnt over the past 8 years teaching Java to high school students . . . do it fast and do it right. Teach OOP right away; out of the box - from lesson 101. The approach of doing "one class, one main method" for the first year, in my opinion, does not...
Gr 12 – SQL Summaries
SQL summary cheat sheet version 15 Click here SQL summary cheat sheet. Author unknown. Click here SQL summary cheat sheet version 6. Advanced. Embedded queries Click here
Gr 11, 12 – SQL tips
SQL TIPS for exams. STUDY the database first (at least 5 full minutes). Study both the data and the fields. Know how many records are in each table so that you can recognize any potential errors in the returned dataset. The better you understand the database, the...
Gr 11 – OOP, String, LocalTime, write to file
Asks for your full name and ID number. Determines the time right now. It reformats the name. It reformats the date of birth from the ID number. It determines the gender from the ID number. It creates a single output String which it prints to both the monitor and an...
Gr 11 OOP and String
Here is a PowerPoint showing the following. Using String handling with OOP - a UI class for the interface and a manager class for the methods. Organizing your One Drive account with your coding projects using NetBeans.Passing a string parameter from one method to...