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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!