//冒泡排序,從數組前面向後循環比較 public static void sort1(int[] aa){ int size=aa.length; int temp; //循環數組 for(int i=0;i