Question: Create a java method getMax() with three parameters, that returns the largest of the three numbers. Reads three numbers from the console and prints the
Create a java method "getMax()" with three parameters, that returns the largest of the three numbers. Reads three numbers from the console and prints the biggest of them. Be sure to use the getMax() method you just created. 1. Create a method called getMax() with three parameters. 2. Implement getMax() to find the biggest of three numbers and return the result. 3. Call getMax() method in main() method and pass the user entered values and print the result returned by getMax() method. Sample Run: Enter Number 1:7 Enter Number_2:4 Enter Number_3:11 Highest: 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
