Simple Java Class Quiz

public void insertionSort(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 Insertion Sort algorithm to sort the data array.

Time remaining: