JAVA TEACHER
ALL THE JAVA MATERIAL AND RESOURCES YOU NEED!
How to use this site
This site 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.
Steve Eilertsen – steve.eilertsen@gmail.com
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...
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 five 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, from an arbitrary number, to another arbitrary number (from lower bound to upper bound). This program generates 20 random numbers to ensure that both the upper bound and the lower bound feature in the solution. Here is 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. 1) Determine if a number is odd or even. 2) Find the bigger of two values. 3) Swop two values around. 4) Check username and password - allow or disallow...
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.
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 10 – GUIs 102
The weather station project. How to code a Java weather station application (part of a much bigger project) that reads in temperature, wind speed, rain, and cloud cover from 4 different text files and then calculates the average value for each. The average value is...
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...