I have two object arrays like so:
Object[] array1 = {0, 1, 2, 3}; Object[] array2 = {0, 1, 2, 3};
I would like to know if the arrays are eq
To compare arrays, I would use the Arrays.equals method:
if (Arrays.equals(array1, array2)) { // array1 and array2 contain the same elements in the same order }