class DoubleBubbleSorter extends BubbleSorter
| Modifier and Type | Field and Description |
|---|---|
private double[] |
array |
length| Constructor and Description |
|---|
DoubleBubbleSorter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
outOfOrder(int index) |
int |
sort(double[] array) |
protected void |
swap(int index) |
doSortprivate double[] array
DoubleBubbleSorter()
public int sort(double[] array)
protected void swap(int index)
swap in class BubbleSorterprotected boolean outOfOrder(int index)
outOfOrder in class BubbleSorter