TODO4 - Use an if/else to determine the maximum of two integers and return that value.
"public int max(int a, int b)"
   
  1. Find the TODO4.java starter file; this empty class also serves as a solution you can experiment and play with.
  2. Next, read all of the comments at the top of the file in the file header.
  3. Set your runner in Main.java to use TODO4.java and comment out any other setRunner calls. (see the stepwise approach for more details)
  4. Determine the single function you need to declare inside the empty class. It's described in the comments and also at the top of this webpage.
  5. Declare the function "public int max(int a, int b) {return -1;}" and rerun the game - do you notice anything different on the console output?
  6. Inside your method, you must build one if statement that asks: "if variable "a" is bigger than variable "b", so "a" is the largest and should be returned."
  7. Extend that if statement using an "else {" so that if variable "a" isn't larger, we return variable "b" instead.