Question: Please post you're code and explain how you came to you're answer. Must be done in java This assignment presents multiple problems that must be

 Please post you're code and explain how you came to you'reanswer. Must be done in java This assignment presents multiple problems that

Please post you're code and explain how you came to you're answer. Must be done in java

This assignment presents multiple problems that must be solved recursively. While some problems might be solved easily with iteration the goal is to get a sense of solving problems recursively. Each problem has an accompanying class file that contains tests to validate your solution as well as the method or methods to implement for each problem. You may implement any additional helper methods to help you solve the problem so long as iteration is not used except where specified. You may not change the initial method header. Problem 5 - Max and Min Value (15 points) Part A - Implement a method that takes an integer array and returns the maximum value in the array. If the array is empty, then throw an IllegalArgumentException the contains a message about the array being empty. Example Input-[1,1,2,2,3,3,3,4,5,4,4,3,4,5,2]Output-5 Reason - 5 is the maximum value in the array. Part B - Implement a method takes an integer array and returns the minimum value in the array. If the array is empty, then throw an IllegalArgumentException the contains a message about the array being empty. Example Input-[1,1,2,2,3,3,3,4,5,4,4,3,4,5,2]Output-1 Reason - 1 is the minimum value in the array

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!