public class Test1 {
public static void main(String[] args) {
int a[]={1,3,25,34,15,44,22,5,9,0};
System.out.println("排序结果为:");
Bouble(a);
}
static void Bouble(int a[]){
int i,j,temp = 0;
for(j=0;j<10;j++){
for(i=j;i
if(a[i]>a[j]){
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
//System.out.println("本次循环最大数为"+a[j]);
}
for(int k=0;k
System.out.println(a[k]);
}
}
}



