download
URL: https: //www.jetbrains.com/
After installation you can simply double-click to download
test
Click File-> new-> project-> Empty Project, this is a new space project, at this time does not appear src directory, click on File-> new-> Module, appears src directory ,, Click File-> Project Structure this project structure for the selection, click project
Project SDK found beneath red error appears, click to choose their own JDK version, and Project version language level below ah selected with the corresponding version of the JDK.
use
A new class, enter the code in the src
public class Hello {
public static void main(String[] args) {
System.out.println("Hello,World!");
}
}
Click the green arrow next to the code, starts running
Configuration and optimization
Can be optimized directly from the Baidu search IDEA, choose their own preferences to optimize
Note
Single-line comments
Syntax: // + Notes content
Multi-line comments
Syntax: / * + * + footnotes /
Documentation Comments
Syntax: / ** + * + footnotes /
Note : All comments will not be executed, but to those who write the code to see