How would I compare two arrays for exact equality.
Originally I was thinking:
int[] array1 = new int[]{2, 0};
int[] array2 = new int[]{2, 0};
if(array1 == array2)
//do something
this doesn't work. Can someone explain what it is that I am comparing if not the values inside the array? Also how do I compare the two arrays to check if they are identical?