Question: 2. Write a method which takes an array of integers and returns the largest one. So if the array is 35 55 65 40


 2. Write a method which takes an array of integers and returns

2. Write a method which takes an array of integers and returns the largest one. So if the array is 35 55 65 40 25 50 the method should return 47.

Step by Step Solution

3.53 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

We can find maximum of the array in On time algorithm 1create a variable max and sto... View full answer

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 Algorithms Questions!