数列排序
import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int []s = new int[n];
for(int i=0;i<s.length;i++) {
s[i]=sc.nextInt();
}
Arrays.sort(s);
for(int j=0;j<s.length;j++) {
System.out.print(s[j]+" ");
}
}
}