/*给一个字符串"20 78 9 -7 88 36 29"
* 对立面的数字进行排序*/
import java.util.Arrays;
public class 练习题 {
public static void main(String[] args){
String input = "20 78 9 -7 88 36 29";
String aString[] = input.split(" +");
int a[] = new int[aString.length];
for (int i = 0; i < aString.length; i++) {
System.out.print(aString[i]+" ");
a[i] = Integer.valueOf(aString[i]);
}
System.out.println();
Arrays.sort(a);
for (int i = 0; i < a.length; i++) {
System.out.print(a[i]+" ");
}
}
}