code: public static void swap(char[] charArray, int index1, int index2) {
          TrivialSwap.swap(charArray, index1, charArray, index2);
      }
docs: Swap two elements of a char array at the specified positions
  
  @param charArray 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.