First To Program

public class Main {

public static void main(String[] args) {

System.out.println("Hello World");

}

}

Above is the very common what we can see from the basic code of the program. From time to time we can see more of codes in much bigger complexity and advanced. Before that, you know how to set up the tools and run Java right? I bet you were.

Let me explain the code

public class Main -> is the class that will have a 'Main' as a keyword to the class.

public static void main(String[] args) -> the access modifier takes the arguments of the string array that will allow executing every string inside it.

System.out.println("Hello World") -> telling the system to print the string at "Hello World"

let's write below simple code