1. Actually the first Java program is very simple, but when you write your first Java program, you need to pay attention to the following things:
- Understand the running environment of Java programs
- Verify that your Java environment variable is able to run the first Java program you wrote
- Understand the specifications written by Java programs
2. Code writing
- Notepad or Text editor (EditPlus, nodepad++)
- Java IDE, it is recommended to use eclipse, if you do not need to configure Java environment variables with eclipse
3. Code specification
- Java is strictly English letter case
- The left and right curly braces {}appear in the code, and the parentheses act as an echo, representing the middle where the code is written.
- You write good Java code save the file name must be identical to the code name
- After the code is saved, a. Java suffix file is generated
- There are two types of code comments in Java://(single-line comment) and/**/(multiline comment)
- Code naming conventions in Java Programming: Hump naming (capitalize the first letter of the word)
4. Code Run Process
- Compile first, compile by Javac command
- And then run it through the Java command.
[Liu Yang Java]_ First Java program _ 7th speaking