原创 Java數據結構(10)----冒泡排序

冒泡排序 先上代碼 public static void sort(int[] array) { for(int i = 0;i<array.length-1;i++) { for(int j = i+1;j<array