Java Hello World: Your First Program
Write your first Java program: the Main class, the main method and System.out.println. Compile and run real Java in your browser — no JDK install.
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}