我想比較兩個數組。java奇怪的數組比較
我初始化它們:
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}};
,當我試圖用它們進行比較:
Inventory.craftarray.equals(Craft.stone)
它並沒有說他們是平等的,所以我打印出來的陣列。
工藝陣列回來了0,而石頭返回'[[I @ 44ffb2'。
這是怎麼發生的?
感謝Minecraft特定的東西! – thmas