Exercises

Note: you MUST use the filenames and class names indicated in each exercise, and your program output MUST match the required format exactly – otherwise you will not earn the marks awarded for the exercise.

After completing each of these exercises, remember to submit your solution to Minerva for grading. Submission links are in the Exercises folder, on the Submit My Work page. Remember also to commit your solution and push your commits up to GitLab.

If the autograder reports failing tests for an exercise submission, a video is available providing advice on how to fix the problems in your code.

  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