<<< Arrays.fill | Index | Arrays.equals >>> |
The expression (array1 == array2) determines if the determines whether array1 and array2 refer to the same array in memory:
if ( array1 == array2 ) { //... }
To determine whether arrays contain the same elements, you can compare them element by element
You can write a method that returns true if two int arrays contain the same elements
<<< Arrays.fill | Index | Arrays.equals >>> |