Class SelectionSort

  • All Implemented Interfaces:
    ArraySorter

    public class SelectionSort
    extends Object
    implements ArraySorter
    Provides an implementation of the selection sort algorithm.
    Author:
    Middleware Services
    • Constructor Detail

      • SelectionSort

        public SelectionSort()
    • Method Detail

      • sort

        public void sort​(String[] array,
                         Comparator<String> c)
        Description copied from interface: ArraySorter
        This will sort the supplied string array.
        Specified by:
        sort in interface ArraySorter
        Parameters:
        array - To sort
        c - Comparator to sort with