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, resetRunTimes
public void sort(java.lang.Integer[] arrayToSort)
SortInterface
Integer
objects. At the
completion of this method, the array will be sorted.sort
in interface SortInterface
arrayToSort
- This is the array that contains all the Integer
objects
that need to be sorted.