Question: Use a method called findMax that takes three arguments and returns the maximum value of the three integer values. The main method will be used
Use a method called findMax that takes three arguments and returns the maximum value of the three integer values. The main method will be used to pass three integer values to the findMax method. The findMax method will receive the three integer values and determine which has the maximum value. This maximum value will be returned to the main method by the findMax method. The main method will print: "The largest value is: " - and then also print the returned maximum value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
