Question: Write a method call max, which takes two parameters of type int, return the greater of the two integer. The header of the method
Write a method call max, which takes two parameters of type int, return the greater of the two integer. The header of the method is like this public static int max(int num1, int num2) Write a test method, which generates 100 random numbers between 0-1000, and calls the max method to find the maximum of 100 random numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
