I am trying to compare two arrays.
I initialise them:
public static int [][] craftarray = {{0,0,0},{0,0,0},{0,0,0}};
public static int [][] stone = {{0,0,0},{0,0,0},{0,0,0}};
When i tried to compare them using:
Inventory.craftarray.equals(Craft.stone)
It did not say they were equal so i printed out the arrays.
the craft array came back with 0's while stone returned ' [[I@44ffb2 '.
Why is this happening?