void (int[] arr) { for (int j = 0; j < arr.length; j++) { int block = arr[j]; if (block != 0) { int index = j << 5; for (int i = 31; i >= 0; i--) { if ((block & 1) != 0) { System.out.println("foo"); } index++; block >>>= 1; } } } }