Write a recursive method that returns the smallest integer in an array of integers. If you divide the array into two pieces—halves, for example—and find the smallest integer in each of the two pieces, the smallest integer in the entire array will be the smaller of the these two integers. Since you will be searching a portion of the array—for example, the elements array[first] through array[last]—give your method three parameters: the array and the two indices first and last. Hint: Study the method displayArray given.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here