Question: In Java // receives: list - array of ints and numElements - count of values in array list // returns: nothing // task: sorts list

In Java
// receives: list - array of ints and numElements - count of values in array list // returns: nothing // task: sorts list into ascending order (smallest to largest) public static void sortints(int [] list, int numElements) // receives: strList - array of Strings and numElements - count of values in array // returns: nothing // task: sorts list into ascending order (smallest to largest) according to name // case in-sensitive public static void sortStrings(String [] strList, int numElements) // receives: strList - array of String // numElements - count of values in array strList // strToFind - String to find index of in strList, case in-sensitive // returns: index of strToFind (first occurrence) in strList, -1 if NOT found // task: find string (case ignored) return index if found, - 1 if not public static int find(String [] strList, int numElements, String strToFind)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
