does arrays.equal method works only with string arrays in java? code example
Example: Java array equals
java.util.Arrays.equals(a, b) // narrow equals (values are compared with == and value.equals)
java.util.Arrays.deepEquals(a, b) // deep equals (recursively looks at nested arrays)