标签:for out str length strong temp system ++ 冒泡
for(int b=0;b<arr.length-1;b++){
for(int a=0;a<arr.length-1;a++){
if(arr[a]>arr[a+1]){
int temp = arr[a];
arr[a] =arr[a+1];
arr[a+1] = temp ;
}
}
}
for(int i:arr){
System.out.println(i);
}
}
标签:for out str length strong temp system ++ 冒泡
原文地址:https://www.cnblogs.com/beimo/p/11867791.html