class SplitArray {

  public void splitSwappingRecursive(int[] array) {
    if (array == null) {
      throw new IllegalArgumentException("Array passed as parameter can't be null.");
    }

    if (array.length == 0) {
      return;
    }

    splitSwappingRecursiveInner(array, 0, array.length - 1);
  }

}