java array nested equals

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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