public class InsertionSort extends RunTime implements SortInterface
| Constructor and Description |
|---|
InsertionSort() |
| Modifier and Type | Method and Description |
|---|---|
void |
sort(java.lang.Integer[] arrayToSort)
This method is called to sort the given array of
Integer objects. |
addRuntime, getAverageRunTime, getLastRunTime, getRunTimes, resetRunTimespublic void sort(java.lang.Integer[] arrayToSort)
SortInterfaceInteger objects. At the
completion of this method, the array will be sorted.sort in interface SortInterfacearrayToSort - This is the array that contains all the Integer objects
that need to be sorted.