code: public static void swap(float[] floatArray1, int array1Index, float[] floatArray2, int array2Index) {
          if(floatArray1[array1Index] != floatArray2[array2Index]) {
              float hold = floatArray1[array1Index];
              floatArray1[array1Index] = floatArray2[array2Index];
              floatArray2[array2Index] = hold;
          }
          
      }
docs: Swap the elements of two float arrays at the specified positions.
  
  @param floatArray1 one of the arrays that will have one of its values swapped.
  @param array1Index the index of the first array that will be swapped.
  @param floatArray2 the other array that will have one of its values swapped.
  @param array2Index the index of the second array that will be swapped.