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
Get step-by-step solutions from verified subject matter experts
