Question: 1. Given an array of strings, write a recursive method that finds and prints the string of (a) minimum length and (b) another recursive method

1. Given an array of strings, write a recursive method that finds and prints the string of (a) minimum length and (b) another recursive method that finds the string of maximum length. Your methods should have signature as follows: (a) public static string findSmallest (String[] array, int index) (b) public static String findLongest (String[] array, int index) For example, if the array is apple, mango, banana, nut", "watermelon"} then findSmallest method will return "nut", while findLongest will return "watermelon". Also write a main method to test your methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
