Java Hello world


Objective: print “Hello world!” in console
Code:

//Main.java
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
    }
}
Tags:Java