Topic 1 - Variables and Data Types
Topic 2 - Conditionals and Strings
Topic 3 - Loops
Topic 4 - Arrays
Topic 5 - File Handling
Semester 1 Projects
Topic 6 - Classes/Objects and Methods
Topic 7 - ArrayLists
Semester Projects

Part 1a: Find the Secret Message

We have two photos (Maria.bmp and SecretMessage.bmp) that look almost identical, but if we compare them – you can see a secret message!

  • In Picture.java main method, we load in the photo Maria1.bmp:
Picture pic = Picture.loadPicture("Maria1.bmp");
  • Add code to the main method to load in the photo SecretMessage.bmp.
  • Create a new photo by calling the method showDifferences. Note: You need to look at the method to figure out how to call it.
  • Look at the new photo you created in the previous step using the method show().
  • Write a description of the secret message in a comment at the top of Picture.java