Solution for List Minimum in Java 8


Nov. 6, 2019 0.736356 seconds Java 8
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]);
        }
       
       

    }
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.