标签:
import java.util.Arrays; import java.util.Scanner; public class Main { static int []a = new int [210]; public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); for (int i = 0; i < n; i++) { a[i] = in.nextInt(); } Arrays.sort(a,0,n); for (int i = 0; i < n; i++) { System.out.print(a[i]+" "); } System.out.println(); } }
标签:
原文地址:http://www.cnblogs.com/LuckyZcy/p/5169949.html