Question: need help in writing a recursive method that uses your compareTo(String, String) method to find the minimum (i.e. first by alphabetical order) String in an

need help in writing a recursive method that uses your compareTo(String, String) method to find the minimum (i.e. first by alphabetical order) String in an array of Strings, given the array and the number of strings in the array: 50 points public static String findMinimum(ArrayList stringArray) OR public static String findMinimum(String[] stringArray, int numStrings) Hint: Use the above method signature to call a private, helper method that is recursive - you can add extra parameters to this helper method!

cannot use array.sort or collection.sort

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!