public class HelloWorld { public static void main(String[] args) { System.out.println("Hello world!"); }}
Standard input is empty
Main.java:1: error: class HelloWorld is public, should be declared in a file named HelloWorld.java public class HelloWorld { ^ 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!