Class BubbleSort

  • All Implemented Interfaces:
    ArraySorter

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

      • BubbleSort

        public BubbleSort()
    • 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