java array nested equals

Solutions on MaxInterview for java array nested equals by the best coders in the world

showing results for - "java array nested equals"
Kaina
10 Oct 2020
1int[][] a = new int[][] {{1}, {2}, {3, 4}};
2int[][] b = new int[][] {{1}, {2}, {3, 4}};
3int[][] c = new int[][] {{1}, {2}, {3}, {4}};
4java.util.Arrays.deepEquals(a, b) // true
5java.util.Arrays.deepEquals(b, c) // false