List of utility methods to do Array Contain
boolean | arrayContains(int[] arr, int e) checks if an int array contains an int element for (int i = 0; i < arr.length; i++) { if (arr[i] == e) return true; return false; |
boolean | arrayContains(int[] arr, int ii) array Contains boolean result = false; for (int i = 0; i < arr.length; i++) { if (arr[i] == ii) result = true; return result; |
int | arrayContains(int[] array, int value) array Contains int index = 0; for (; index < array.length; index++) if (array[index] == value) break; if (index < array.length) return index; else return -1; ... |
boolean | arrayContains(int[] array, int value) array Contains for (int i : array) { if (i == value) { return true; return false; |
boolean | arrayContains(Object obj, Object[] array) array Contains for (int i = 0; i < array.length; ++i) { if (array[i].equals(obj)) { return true; return false; |
int | arrayContains(Object[] a, Object ob) Returns the index of ob in array a if (a == null) return -1; for (int i = 0; i < a.length; i++) { if (a[i] == ob) return i; return -1; |
boolean | arrayContains(Object[] array, Object el) Checks to see if an array of objects contains a given element return Arrays.asList(array).contains(el);
|
boolean | arrayContains(Object[] array, Object el) array Contains return Arrays.asList(array).contains(el);
|
boolean | arrayContains(Object[] array, Object element) Check if an unsorted array contains an element. return arrayContains(array, element, false);
|
boolean | ArrayContains(Object[] array, Object obj) This methode returns, if array contains obj. for (int i = 0; i < array.length; i++) { if (array[i].equals(obj)) { return true; return false; |