code: public static void reverse(int[] a) {
          int i = 0, j = a.length - 1;
          while (i < j) {
              SortUtils.swap(a, i++, j--);  // code for swap not shown, but easy enough
          }
      }
docs: Reverses the order of the elements in the specified array.
  @param a an array to reverse.