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

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

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!