冒泡排序 public class test { public static void main(String[] args) { // TODO Auto-generated method stub int numbers[] = { 6, 2, 4, 1, 5, 9 }; BubbleSort(numbers); } public static void BubbleSort(int [] numbers){ for (int i = 0; i < numbers.length - 1; i…