Java Array Methods Table
Java Array Methods Table
copyOfRange() Copies range into new array Arrays.copyOfRange(new int[]{1,2,3,4},1,3) -> [2,3]
deepEquals() Checks deep equality of arrays Arrays.deepEquals(new Integer[][]{{1,2}}, new Integer[][]{{1,2}}) -> tr
equals() Checks if two arrays are equal Arrays.equals(new int[]{1,2}, new int[]{1,2}) -> true
fill() Fills array with a specific value Arrays.fill(new int[3], 5) -> [5,5,5]
hashCode() Generates hash code for array Arrays.hashCode(new int[]{1,2,3}) -> hash value
mismatch() Finds first mismatch index Arrays.mismatch(new int[]{1,2,3}, new int[]{1,2,4}) -> 2