Use JAVA to write a HelloWorld
Step 1:Download a JDK
website:http://www.oracle.com/technetwork/java/javase/downloads/index.html
and install it to your system(the detailed process is solved by yourself)
Step 2:Configure the environment
Reference the website:
https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html
Step 3:
Create a HelloWorld.txt profile. Then input the following code in it
public class HelloWorld {
public static void main(String[] args){
System.out.println("Hello world!");
}
}
save it.
And change its suffix name,such as Helloworld.java.
Step 4:Input commands to run the Helloworld.java
Press windows+R,and input “cmd”.
Then input the following commands in sequence:
“src” enter
“javac Helloworld.java” enter
“java HelloWorld” enter
and then you will see Hello World!