A number of short programming exercises are provided here, to help you learn Java. These are formative; you do not submit them and they do not contribute to your module grade.

Annotated solutions to the exercises can be downloaded from Minerva.

  1. A Basic Java Program
  2. Math Class & Formatted Output
  3. Conditional Statements
  4. String Handling & The Command Line
  5. Arrays and Loops
  6. A Small Class
  7. More Features of Classes
  8. ArrayList & Reading From Files
  9. Inheritance
  10. Interfaces