private static void change(int[] a) { for (int i = 0; i < a.length; i++) { a[i] = 1 - a[i]; // a[i] = (a[i] - 1) * -1; // a[i] = (a[i] + 1) % 2; } }