import java.util.Scanner;
import java.util.Arrays;
public class Psytopic_2 {
public static void main(String[] args) {
int [] shuzi = new int [10];
System.out.println("请输出10个整数:");
for (int i = 0; i < shuzi.length; i++) {
Scanner input = new Scanner(System.in);
shuzi[i] = input.nextInt();
}
Arrays.sort(shuzi);
System.out.print("学员成绩按升序排列:");
for (int i = 0; i < shuzi.length; i++) {
System.out.print(+shuzi[i]+" ");
}
}
}
import java.util.Arrays;
public class Psytopic_2 {
public static void main(String[] args) {
int [] shuzi = new int [10];
System.out.println("请输出10个整数:");
for (int i = 0; i < shuzi.length; i++) {
Scanner input = new Scanner(System.in);
shuzi[i] = input.nextInt();
}
Arrays.sort(shuzi);
System.out.print("学员成绩按升序排列:");
for (int i = 0; i < shuzi.length; i++) {
System.out.print(+shuzi[i]+" ");
}
}
}