Simple Java Class Quiz

public void selectionSort(E[] data, Comparator<E> c);

Remember Comparator is the following interface.

public interface Comparator<E> {
  int compare(E o1, E o2);
}

The method must use the Selection Sort algorithm to sort the data array.

Time remaining: