public int[] sortMaopao(int[] arry){
for (int i = 0; i <arry.length ; i++) {
for (int j = 0; j < arry.length-1-i; j++) {
if (arry[j]>arry[j+1]) {
int temp = arry[j];
arry[j] = arry[j + 1];
arry[j + 1] = temp;
}
}
}
return arry;
}
标签:return,sortMaopao,temp,int,冒泡排序,arry
From: https://www.cnblogs.com/exact/p/16879496.html