public class MergeSorter extends java.lang.Object
| Constructor and Description |
|---|
MergeSorter() |
| Modifier and Type | Method and Description |
|---|---|
static <E> void |
sort(E[] a,
java.util.Comparator<? super E> comp)
Sorts an array, using the merge sort algorithm.
|
public MergeSorter()
public static <E> void sort(E[] a, java.util.Comparator<? super E> comp)
a - the array to sortcomp - the comparator to compare array elements