1 2 3 4 5 6 7 8 9 10 11 12
int[] a = {1, 1, 1, 1, 1} int[] cur = {1, 1, 1, 1, 1} boolean void check(int[] a, int[] cur) { int index = 0; while (index < a.length) { if (a[index] != cur[index]) { return false; } } return true; }