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