I\'m aware of the fact that I could just do a:
while(Arrays.equals(array1, array2))
and then just write the code needed in the else>
else>
How about
if (!Arrays.equals(array1, array2))
Or is that what you mean in your example?