fork download
  1. import java.util.Scanner;
  2.  
  3. public class UserInput
  4. {
  5. public static void main (String [] args)
  6. {
  7. Scanner kboard = new Scanner(System.in);
  8. String input = kboard.nextLine();
  9.  
  10. System.out.println(input);
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:3: error: class UserInput is public, should be declared in a file named UserInput.java
public class UserInput
       ^
1 error
stdout
Standard output is empty