public class QuickSort extends Object implements ArraySorter
| Constructor and Description |
|---|
QuickSort() |
| Modifier and Type | Method and Description |
|---|---|
void |
sort(String[] array,
Comparator<String> c)
This will sort the supplied string array.
|
static void |
sort(String[] array,
Comparator<String> c,
int lo,
int hi)
This will sort the supplied array beginning at the lo index and ending at the hi index, using the quick sort
algorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsortpublic void sort(String[] array, Comparator<String> c)
ArraySortersort in interface ArraySorterarray - To sortc - Comparator to sort withpublic static void sort(String[] array, Comparator<String> c, int lo, int hi)
array - to sortc - comparator to sort withlo - index to beginning sorting athi - index to stop sorting atCopyright © 2003-2024 Virginia Tech. All Rights Reserved.