Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static int[] bubbleSort(int[] sort) {
- for(int i, t, a=1, x=sort.length; a==1; x--)
- for (i=1, a=0; i < x; i++)
- for(a=1; (t=sort[i-1]) > sort[i]; sort[i-1]=sort[i], sort[i]=t);
- return sort;
- }
Advertisement
Add Comment
Please, Sign In to add comment