@Test public void success_ReverseIntegerArray() { int[] input1 = new int[]{0, 1, 1, -1, 0, 0, -1}; assertThat(ArrayUtils.reverse(input1), is(new int[]{-1, 0, 0, -1, 1, 1, 0})); int[] input2 = new int[]{0, -1, 1, -1, 0, 1, -1, 1, 1, 1, 0, -1, -1, 0}; assertThat(ArrayUtils.reverse(input2), is(new int[]{0, -1, -1, 0, 1, 1, 1, -1, 1, 0, -1, 1, -1, 0})); }
public static int[] reverse(int[] input) { int[] output = new int[input.length]; int counter = 0; for (int i : input) { output[input.length - counter - 1] = i; counter++; } return output; }
ArrayUtils { public static int[] reverse(int[] input) { int[] output = new int[input.length]; int counter = 0; for (int i : input) { output[input.length - counter - 1] = i; counter++; } return output; } }
ArrayUtils { public static int[] reverse(int[] input) { int[] output = new int[input.length]; int counter = 0; for (int i : input) { output[input.length - counter - 1] = i; counter++; } return output; }  }
ArrayUtils { public static int[] reverse(int[] input) { int[] output = new int[input.length]; int counter = 0; for (int i : input) { output[input.length - counter - 1] = i; counter++; } return output; }  static byte[][] split(byte[] bytes, int splitIndex); static int[] reverse(int[] input); static byte[] toByteArray(BigInteger value, int expectedBytesLength); static int[] toBinaryArray(BigInteger integer); static int[] toMutualOppositeForm(BigInteger integer); }
ArrayUtils { public static int[] reverse(int[] input) { int[] output = new int[input.length]; int counter = 0; for (int i : input) { output[input.length - counter - 1] = i; counter++; } return output; }  static byte[][] split(byte[] bytes, int splitIndex); static int[] reverse(int[] input); static byte[] toByteArray(BigInteger value, int expectedBytesLength); static int[] toBinaryArray(BigInteger integer); static int[] toMutualOppositeForm(BigInteger integer);  }