Interface Swapper

    • Method Summary

      Modifier and Type Method Description
      void swap​(int a, int b)
      Swaps the data at the given positions.
    • Method Detail

      • swap

        void swap​(int a,
                  int b)
        Swaps the data at the given positions.
        Parameters:
        a - the first position to swap.
        b - the second position to swap.