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 – 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 10 Click here SQL summary cheat sheet. Author unknown. 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...
Methods of Array class
Java has an "array" class that offers many useful methods that you can use in your grade 12 PAT. First you will need to import the Array class import java.util.Arrays; All the methods are static i.e. "Array.nameOfTheMethod". Here is a list of methods you mind find...
Gr 11 – Write to text file
A Java program to write to a text file using PrintWriter (not FileWriter). This program reads in a text file using Scanner - a date and a boolean flag. It adds 45 days to the date and compliments the flag (true to false and false to true) It then writes the new data...
The split method
Reading in a text file into an array of objects using the split( ) method in Java. (There are other ways of doing this for example using useDelimiter( ) with next( ) ) Here is the text file using "#" as the delimiter. Note that there are no extra spaces or strange...
Java NetBeans 17
Java version 17 (JDK 17) is a LTS (Long Term Support version of Java). We use this version together with Apache NetBeans version 17. It is a good idea to uninstall any previous versions of Java and NetBeans using Windowns Control Panel, Uninstall software. Click here...
PAT image problems
Your Java PAT project and image problems using NetBeans. JFrame Form. Images are too big. They are the wrong "shape" or size. Resizing your images. Aspect ratio. Background images. Images on action buttons. Layers. Layered pane. And finally when you run your...
Gr 10 – Jul exams 2023
Here are the grade 10 july 2023 exam papers, both the Java and SQL practical as well as IT theory. Theory Click here for the exam paper Click here for the memo Practical Click here for the exam paper Click here for the memo Do not worry about the blank pages in the...
Gr 11 – Jul exams 2023
Here are the July 2023 exam papers with memos. The Java practical paper and the theory paper.Practical - Version without the SQL Exam paper click here Exam memo click here Theory Exam paper click here Exam memo click here
Gr 11 – Date time methods
Java - LocalDate, LocalTime, LocalDateTime These date time classes have a number of methods. Here is the list . . . Cautionary: Some of these methods are static, some are non-static, some need parameters, some are void, some are typed. See code examples for more...
Gr 11 – Past papers 2022
Here is a list of IT exams, both IT theory and practical Java coding for grade 11 - both the question paper and the memo. Note: Some questions are quite experimental in nature. If a question does not suit your needs merely move onto the next question. There are also...
Gr 10 – Past papers 2022
Here is a list of 2022 IT examination papers for grade 10 - both Java and IT theory. Note that in some papers question one is experimental and therefore may not match your needs. In this case just move onto the next question. There may also be some back pages where a...
PAT – How to start
PAT - How to start lesson You will need your Funworks grade 12 Java text book page 152 onwards There is also an alternative handout called Grade 12 Performance Assessment Task (PAT) Meeting in _General_-20230126_145010-Meeting Recording.mp4