Returns the index of the last appearance of the value target in array. @param array an array of int values, possibly empty @param target a primitive int value @return the greatest index i for which array[i] == target, or -1 if no such inde
(int[] array, int target)
| 202 | * such index exists. |
| 203 | */ |
| 204 | public static int lastIndexOf(int[] array, int target) { |
| 205 | return lastIndexOf(array, target, 0, array.length); |
| 206 | } |
| 207 | |
| 208 | // TODO(kevinb): consider making this public |
| 209 | private static int lastIndexOf(int[] array, int target, int start, int end) { |
no outgoing calls
no test coverage detected