Program development step description
Three steps of java program development: writing, compiling and running .
write
Create a new txt file and name it HelloWorld, open it and write the code, save with Ctrl+s, and then modify the file suffix to .java
Pay attention to writing under the English input method
Compile the HelloWorld.java file
win+R and enter cmd to open the command prompt and compile the HelloWorld.java file.
Generate the corresponding class file after compilation
run
About the error
Compilation failure is likely to be a punctuation error, and the other error may be a wrong letter.
The errors shown in the figure below are all punctuation errors in the java source file. The number 3 represents the third line. The content after the "error" colon is the cause of the error.
Pay special attention to symbols
** This note is based on the creation of the b-site learning video. Corresponding portal