Since the environment construction is on various sites, I will omit it (sorry lol). The following is the source code.
Main.java
public class Main{
public static void main(String[] args){
System.out.println("Hello World!!");
}
}
(Oh, the source code could be displayed on Qiita lol)
By executing this, the result will be output as "Hello World !!". Basically, programming starts with Hello World first (why?)
For the time being, you can see that you can print a string with System.out.println ("string"). There may be various display methods, but they will be done one by one.
How to name the source file. The first line of code says "public class Main", but use this Main part (called the class name) to name it "Main.java". The Main part can be changed to various things.
Recommended Posts