List of utility methods to do Integer Array Create
double | intArrayMin(int[] arr) int Array Min int min = Integer.MAX_VALUE; for (int cur : arr) min = Math.min(min, cur); return min; |
boolean | intArraysAreEqual(int array1[], int array2[]) Test if two int arrays are equal. int i, n; if (array1 == null) return (array2 == null); n = array1.length; if (n != array2.length) return false; for (i = 0; i < n; i++) { if (array1[i] != array2[i]) ... |
void | intArraySet(int arr[], int val) Reinitializes an int array to the given value in an optimized way. int i, len, len2; len = arr.length; if (len < MAX_EL_COPYING) { for (i = len - 1; i >= 0; i--) { arr[i] = val; } else { len2 = len >> 1; ... |