Hello world

The so-called “Hello World” program is a small computer program that uses a simple print method to output the text “Hello World”. This shows in a simple way which instructions and components are required for a complete, executable program in a certain programming language. The “Hello World” program is often the first port of call for any programming language.

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("hello world");
    }
}
Output
hello world