code: public static <E> void swap(E[] array, int index1, int index2) {
          TrivialSwap.swap(array, index1, array, index2);
      }
docs: Swap two elements of array at the specified positions
  
  @param <E> the type of elements in this list.
  
  @param array array that will have two of its values swapped.
  @param index1 one of the indexes of the array.
  @param index2 other index of the array.