public class ArraysSort extends Object implements ArraySorter
Arrays.sort(Object[], Comparator)
.Constructor and Description |
---|
ArraysSort() |
Modifier and Type | Method and Description |
---|---|
void |
sort(String[] array)
This will sort the supplied string array.
|
void |
sort(String[] array,
Comparator<String> c)
This will sort the supplied string array.
|
public void sort(String[] array)
ArraySorter
sort
in interface ArraySorter
array
- To sortpublic void sort(String[] array, Comparator<String> c)
ArraySorter
sort
in interface ArraySorter
array
- To sortc
- Comparator to sort withCopyright © 2003-2024 Virginia Tech. All Rights Reserved.