Question: Write two Java methods which return the minimum value in an integer array. You should write: - An iterative method which returns the minimum value

Write two Java methods which return the minimum value in an integer array. You should write: - An iterative method which returns the minimum value in an integer array. In this method, you must use either a for or a while loop. You should call this method minArraylter and it should have a definition as follows: public static int minAmaylter(int] a) where a is the input array. - A recursive method which returns the minimum value in an integer array. You should call this method minArrayRec. The array. You may assume that there will always be at least one element in the array. n, n, where n is the length of the array, followed by = numbers Sample input 6.191901990991 Output Each method will return the value which is the minimum value in the integer array to be printed on the same line separated by a space Sample Output 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
