code: public static void swap(short[] shortArray1, int array1Index, short[] shortArray2, int array2Index) {
          if(shortArray1[array1Index] != shortArray2[array2Index]) {
              short hold = shortArray1[array1Index];
              shortArray1[array1Index] = shortArray2[array2Index];
              shortArray2[array2Index] = hold;
          }
          
      }
docs: Swap the elements of two short arrays at the specified positions.
  
  @param shortArray1 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 shortArray2 the other array that will have one of its values swapped.
  @param array2Index the index of the second array that will be swapped.