array1.equals(array2) is the equivalent as array1 == array2, i.e. is it the same array. it's not what most utmost people expect.
Arrays.equals(array1, array2) connects the contents of the arrays.
Similarly, array.toString() may not be quite useful and you need to use Arrays.toString(array).