Java Stdin and Stdout I

  • + 2 comments

    // Even better

    public class Solution {

    public static void main(String[] args) {
    
        Scanner scan = new Scanner(System.in);
    
        scan.forEachRemaining(System.out::println);
    
    }
    

    }