• Facebook
Java Teacher
  • HOME
  • GRADE 10 JAVA
  • GRADE 11 JAVA
  • GRADE 12 JAVA
  • RESOURCES
    • IEB Information Technology Tutor South Africa
    • Posters for Classrooms
    • GENERAL
Select Page

Gr 11 – OOP, String, LocalTime, write to file

by Editorial | Feb 22, 2025 | Grade 11, Grade 11 - Date time, Grade 11 - Text Files, Teacher

 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 – Write to text file

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...

The split method

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...

Gr 11 – GUIs 102

by Editorial | Sep 2, 2021 | Grade 11, Grade 11 - GUI, Grade 11 - Text Files, Grade 12 - PAT

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...

Gr 11 – Reading in a text file

by Editorial | May 17, 2021 | Grade 11, Grade 11 - Text Files, Grade 12, Grade 12 - text files

Grade 11 –  Reading in a text file into an array or into parallel arrays (array sets). Without a delimiter and with a delimiter. Grade 12 – Reading in a text file into an array of objects GRADE 11 1) Reading in a simple text file using the Scanner class....

Gr 12 – Text and Scanner

by Editorial | May 12, 2021 | Grade 11, Grade 11 - Text Files, Grade 12, Grade 12 - text files

Being able to read in a text file into an array of objects using the Scanner class is mission-critical in the final grade 12 practical exam paper. Here are some examples for you to practice with.  1) This text file has 5 fields ie Order, Restaurant, Description,...
« Older Entries

Recent Posts

  • Gr 10,11 – Comparing devices
  • Gr 10,11 – Application Suites
  • Gr 12 – Unicode
  • Gr 11 – Rounding off
  • Gr 12 – The Law

GRADE 10

  • Gogga
  • Java Core
  • Critical algorithms
  • Flow Pseudo Trace
  • Theory
  • OOP
  • SQL
  • Exam memos
  • GUI

GRADE 11

  • Critical algorithms
  • String and Character Handling
  • Array and OOP
  • Theory
  • Text Files
  • Pseudocode
  • Networking
  • Date time
  • SQL
  • Exam memos
  • NetBeans
  • GUI
  • Debug

GRADE 12

  • Critical algorithms
  • Search and Sort
  • Java OOP
  • Inheritance
  • Text Files
  • Theory
  • Normalization
  • SQL
  • Networking
  • PAT
  • Cheat Sheets
  • Past Papers
  • Prelim Papers
  • Pseudocode Tracetables
  • Windows

SEARCH BY CATEGORY

  • DISCLAIMER
  • PARTNER WITH US
  • Facebook
Java Teacher - Steve Eilertsen \ DESIGNED BY ELEMENTAL ONLINE