import java.util.Arrays;
//插入排序
public class demo_1129_04 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] a={3,1,5,2,4,9,7,0};
for (int i = 0; i < a.length; i++) {
for (int j = i+1; j < a.length; j++) {
int temp;
if (a[j]<a[i]) {
temp=a[j];
a[j]=a[i];
a[i]=temp;
}
}
}System.out.println(Arrays.toString(a));
}
}