fork download
  1. import java.lang.*;
  2.  
  3. /**
  4.  * Note that Java console applications need to be run through the java runtime
  5.  * by running "java -jar JarFile.jar" in the command line.
  6.  * Java console applications can not be previewed in the Compilr IDE, only applets can.
  7.  */
  8. public class Program
  9. {
  10. /**
  11.   * This is the main entry point for the application
  12.   */
  13. public static void main(String args[])
  14. {
  15. System.out.println("Hello Again World from Compilr!");
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:8: class Program is public, should be declared in a file named Program.java
public class Program
       ^
1 error
stdout
Standard output is empty