/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); }}
Standard input is empty
Standard output is empty
Exception in thread "main" java.util.NoSuchElementException: No line found at java.util.Scanner.nextLine(Scanner.java:1540) at MyClass.main(Main.java:10)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!