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 – OOP practical with text file
This one hour, 2022 OOP exercise comes from an exam paper set by M Walker and moderated by H Peuckert and R Viljoen from the Pretoria 480 IEB IT cluster. The mark allocations are also shown. Concepts in this exam. Reads from a text file. Creates an array of objects....
Gr 11, 12 – Debug with NetBeans
Using the Java Debugger in NetBeans is not as easy as it looks. Here is a demo with a four class program that uses inheritance. Click here to download If your knowledge of Java inheritance is not good perhaps you should watch this presentation first. It also...
Gr 11, 12 – Inheritance demo
Here is a helicopter overview of how inheritance works using the NetBeans Debugger. Click here to download presentation Here is the code for the four classes for you to examine (many topics in the code have not been discussed in the presentation as this is an...
Gr 12 – SQL practical
Here is a SQL exercise based on the 2022 SQL exam set by Dr C Kader and moderated by Mr T de Jager and Mr R Viljoen of the IEB Pretoria 480 cluster. In some cases you may find comments which can be annoying if you print the documents shown below. These can be turning...
Gr 10 11- GUIs 101
Teacher's Calculator Learning how to create GUIs in Java takes your coding to the next level and empowers you to start your Grade 12 PAT project. Up to this point your coding has had to run sequentially from top to bottom without user interventions. The big advantage...
EDTECH – 8,9 Image search
Do an image search for the following 23 images. Do this by clicking on the link, right clicking and choosing "Search image with Google lens.". If you don't get the results you are looking for choose "Retry with Google images." Create an Excel spreadsheet with the...
Gr 10 – Binary
Here is the best animation for binary - great for your junior IT students. Click here
Gr 12 – Critical OOP textfile
Reading in a text file into an array using the Scanner class and using OOP principals eg static variables and methods, creating objects, passing parameters. This program also uses String handling. There are eight versions of this program. The first versions has no OOP...
EdTech Who am I
Who am I Here are the pages of postage stamps Page One Page Two Page Three
Gr All – Generate random
Being able in Java to generate a random number, from an arbitrary number, to another arbitrary number (from lower bound to upper bound). Note that the lower bound is included and the upper bound is excluded. Example: If the lower bound is 2 and upper bound is 15, the...
Gr 11 – Critical Algorithms
You must be able to code these algorithms quickly. Click on links for some of the solutions offered as a download. Determine if a number is odd or even. Find the bigger of two values. Swop two values around. Check username and password - allow or disallow access....
Gr 10 – Critical algorithms
Ten critical algorithms for grade 10 (and 11 and 12) An algorithm is a series of sequential steps to solving a coding problem. The algorithms listed here below may seem very short but they are critical nevertheless - perhaps one could argue that they are concepts more...
Gr 12 – GUI Cheatsheet
When coding your Java GUIs in JFrameForm you will need the same lines of code over and over again. Because GUIs are only in the PAT, you do not have to memorize structure or syntax; you can just use a cheatsheet to remind you how to structure each line of code. Here...
Gr 12 – PAT help files
When preparing your Java application program for your grade 12 PAT project, you need to include online help for the user eg dialog boxes, helpful messages and prompts, tooltips, and of course context-sensitive help for each of the major GUIs. Context-sensitive help...
Gr 12 – Inheritance Calculations
Your Java Parent class must do the calculations on behalf of your Child class. How is how to do it . . . Click here to download presentation.