import java.util.Scanner; public class UserInput{ public static void main (String [] args) { Scanner kboard = new Scanner(System.in); String input = kboard.nextLine(); System.out.println(input); }}
Standard input is empty
Main.java:3: error: class UserInput is public, should be declared in a file named UserInput.java public class UserInput ^ 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!