Question: In Java 4. //reverses the array elements, so first element becomes last, last becomes first etc. 11 the array has numElementsInArray values stored in it

In Java
4. //reverses the array elements, so first element becomes last, last becomes first etc. 11 the array has numElementsInArray values stored in it currently // receives: list - an array of ints, numElements InArray - current number of elements stored in list // so if listi has 4 values in it: 4, 15, 34, 200 listi's contents becomes 200, 34, 15, 4 after it is reversed // Example call #1: // Example call #2: // Example call #3: 11 signature of method: public static void reverseArray(int [] list, int numelementsInArray) 5. // counts the number of times the received String, valueToMatch, // appears in the String array list, IGNORES CASE // returns that count. Matches case INSENSITIVE // receives: list - an array of Strings to examine, int numElementsInArray, and the String, valueToMatch // Example call #1: // Example call #2: 17 Example call #3: Il signature of method: public static int countMatches (String [] list, int numElementsInArray, String valueToMatch) 6. // populates received integer array with received value 11 receives: array of integers, list, that will have all elements filled with received value // Example call #1: // Example call #2: // Example call #3: // signature of method: public static void fillArray(int [] list, int value)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
