Question: Write a recursive method, called findMinS(), to find the index of the smallest element in an array of Strings. Example: String[] arrs = { Welcome,

Write a recursive method, called findMinS(), to find the index of the smallest element in an array of Strings.
Example: String[] arrs = { "Welcome", "to", "the", "United", "Arab", "Emirates", "University"};
findMinS(arrs, 0) returns 4.
public static int findMinS(String[] strArray, int start) {
-------
}
public static int findMin(String[] strArray) {
return findMinS(strArray, 0);
}

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!