public class Paopao {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] shuz={78,54,17,12,87,94,35,66};
popo(shuz);
for (int i = 0; i < shuz.length; i++) {
System.out.println(shuz[i]);
}
}
public static void popo(int[] sz) {
for (int i = 0; i < sz.length; i++) {
int a = 0;
for (int j = 1 + i; j < sz.length; j++) {
if(sz[i]>sz[j]){
a=sz[j];
sz[j]=sz[i];
sz[i]=a;
}
}
}
}
}