Java Arrays.equals() returns false for two dimensional arrays.
- by Achilles
Hi there,
I was just curious to know - why does Arrays.equals(double[][], double[][]) return false? when in fact the arrays have the same number of elements and each element is the same?
For example I performed the following test.
`
[java]
double[][] a, b;
int size =5;
a=new double[size][size];
b=new double[size][size];
for( int i =…