天天看點

java基礎知識-冒泡排序

//冒泡排序,從數組前面向後循環比較

public static void sort1(int[] aa){ int size=aa.length; int temp; //循環數組

for(int i=0;i