In order to correctly calculate the hash code for an array, use:
Arrays.hashcode() for linear arraysArrays.deepHashcode() for multidimensional arraysObjects.hash() when
the sequence of input values includes arrays, for example:
Objects.hash(string, Arrays.hashcode(array))