by Editorial | Nov 11, 2024 | Grade 12 - PAT, Grade 12 - Search and Sort
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...
by Editorial | Sep 15, 2024 | Grade 11, Grade 11 - Text Files, Grade 12, Grade 12 - text files
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...
by Editorial | Sep 9, 2024 | Grade 11 - Text Files, Grade 12 - text files, PWC grade 11 - All
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...
by Editorial | Sep 6, 2024 | Grade 11 - NetBeans, Grade 12, Grade 12 - PAT
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...
by Editorial | Jul 28, 2024 | Grade 12, Grade 12 - PAT
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...
by Editorial | Aug 21, 2023 | Grade 11, Grade 12
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...