Question: * A previous problem, findFirstNull, looked for a null value starting * at index [0]. In this version of the problem, will search for a
* A previous problem, findFirstNull, looked for a null value starting * at index [0]. In this version of the problem, will search for a specific * key starting at a specific index. If you reach the end of the array without * finding the key, return -1. * ary. will contain at least one string. The strings will be non-null. * key will be a non-null string * startingIndex will a valid index for the given array. */ (aProblem (doThis=false) @TestCase(io=" (['a'], "a, 0) 0) @TestCase(io=" (['a', "ab'], "abc', 0)1) @TestCase(io=" ( [ heilo', "a', "world", "done' ], 'a', 0) ") public static int findIndex0ffirstStartingAt(String [] ary, String key, int startingIndex) f 3 return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
