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