fork download
  1. public class HelloWorld{
  2.  
  3. public static void main(String []args){
  4. System.out.println("Hello World");
  5. }
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
public class HelloWorld{
       ^
1 error
stdout
Standard output is empty