Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java array nested equals

int[][] a = new int[][] {{1}, {2}, {3, 4}};
int[][] b = new int[][] {{1}, {2}, {3, 4}};
int[][] c = new int[][] {{1}, {2}, {3}, {4}};
java.util.Arrays.deepEquals(a, b) // true
java.util.Arrays.deepEquals(b, c) // false
 
PREVIOUS NEXT
Tagged: #Java #array #nested #equals
ADD COMMENT
Topic
Name
5+2 =