public class BubbleSort extends SortApp.SortAlgorithm
SortApp.SortAlgorithm + minor improvements.stopRequested| Constructor and Description | 
|---|
BubbleSort()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
bSort(int[] a,
     int lo,
     int hi)
The bubble sort algorithm. 
 | 
static void | 
main(java.lang.String[] args)
Start as application. 
 | 
void | 
sort(int[] a)
The real sorting method. 
 | 
getMaxPossiVal, pause, pause, pause, startMe, stop, swapprotected final void bSort(int[] a,
                           int lo,
                           int hi)
a - the array to be sortedlo - the lower indexhi - the upper indexpublic void sort(int[] a)
SortApp.SortAlgorithmSortApp.SortAlgorithm.pause(int, int), SortApp.SortAlgorithm.pause(int), SortApp.SortAlgorithm.pause() directly
  or indirectly by utilising SortApp.SortAlgorithm.swap(int, int) for element 
  exchanges within the array having been provided to this
  sort implementation. pausing does all else like counting steps,
  displaying the sorting state and else.sort in class SortApp.SortAlgorithmpublic static void main(java.lang.String[] args)
SortApp.SortAlgorithm.startMe()