List of utility methods to do Array Index Of
int | indexOfCS(String[] strings, String a) index Of CS for (int i = 0; i < strings.length; i++) { if (strings[i].equals(a)) return i; return NOT_FOUND; |
int | indexOfIdentical(Object[] array, Object value) Returns the index in array of the first occurrence identical to value , or -1 if array does not contain value . for (int i = 0; i < array.length; i++) { if (array[i] == value) { return i; return -1; |