public class maopao {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] a = { 888,1, 2, 2, 3, 89, 4, 4, 98, 6, 6, 7, 87, 87, 8, 78, };
for (int i = 0; i < a.length - 1; i++) {
for (int j = i + 1; j < a.length; j++) {
if (a[i] > a[j]) {
int temp;
temp = a[j];
a[j] = a[i];
a[i] = temp;
}
}
}
for (int i = 0; i < a.length; i++) {
System.out.println(a[i]);
}
}
}