Nathan Coulas

List Minimum

bf1 JAVA8 06 Nov, 2019 0.736s 4 points

Source Code

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        
              
          Scanner in = new Scanner(System.in);
        int[] intList = new int[in.nextInt()];
        for(int i = 0; i < intList.length; i++){
            intList[i] = in.nextInt();
        }
        Arrays.sort(intList);
        for(int i = 0; i < intList.length; i++){
            System.out.println(intList[i]);
        }
       
       

    }
}