How can you compare int[0][0]
and int[0][1] ... int[0][n]
?
Using:
Arrays.deepEquals
getting
System.out.println(Arrays.deepEquals(new int[0][0],new int[0][3])); output : true
When comparing arrays of type int[i][j]
, where i != 0
, using Arrays.deepEquals
everything is ok. But there is a need to compare arrays, where i == 0
. I would be grateful for the help.