Question: Write a method named maxElement, which returns the highest value in an array that is passed as an argument. The method should use recursion to

Write a method named maxElement, which returns the highest value in an array that is passed as an argument. The method should use recursion to find the lowest element in the array that you have passed. Demonstrate the method in a complete java program.

Sample Input/Output: bold number indicates user input

Enter how many numbers in the array = 5

Enter the numbers= 4 6 2 8 3

The highest number in the array is: 8

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!