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
In the example you've posted the arrays will actually contain Integer objects. In that case, Arrays.equals() is enough. However, if your arrays contain some objects of yours, you have to implement equals() in your class so that Arrays.equals() work
Integer
Arrays.equals()
equals()