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