思想:从后往前,如果d[i]
public static int [] bubbleSort( int []d ){
for(int j=0;j<d.length;j++){
for(int i=d.length-1;i>0;i--){
if(d[i]<d[i-1]){
int temp =d [i ];
d[ i]= d[ i-1];
d[ i-1]= temp;
}
}
}
return d;
}