"Hello, World!" in Java

How to do "Hello, World!" in Java.

// HelloWorld.java
public class HelloWorld
    public static void main(String[] args)
        System.out.println("Hello, World!");

I have never really gotten into the Java world. I wrote some Java code in Notepad back in the 1990s and liked the language, but then I had the misfortune of having to use Eclipse at work a few times, and hated the whole experience, from installation to debugging.

For more "Hello, World!" examples, go to the Hello World category.

Posted by Anders Tornblad on Category Hello World Labels
Tweet this