public class Sort
extends java.lang.Object
| Constructor and Description | 
|---|
| Sort() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int[] | bubbleSort(int[] data)Adequate to  bubbleSort(long[] data) | 
| static int[] | bubbleSort(long[] data)Sorts the input array, returns the index in a new output array. | 
| static int[] | testBubbleSort()Only use in debugging (eclipse or so) to test the algorithm. | 
public static int[] bubbleSort(int[] data)
bubbleSort(long[] data)data - public static int[] bubbleSort(long[] data)
{{ 5, "e"}, { 2, "b"}, { 7, "g"}, { 1, "a"}}{5, 2, 7, 1 }{3, 1, 0, 2 }{2, 1, 3, 0 }{{ 1, "a"}, { 2, "b"}, { 5, "e"}, { 7, "g"}}data - Array with some long numbers unsorted.public static int[] testBubbleSort()