First, ensure that the IDEA software is correctly installed and the Java development kit JDK is installed.
IDEA's Java project (Project) is equivalent to the concept of Eclipse's workspace (workspace).
1. Create a Java project:
1. Open the IDEA software and click Create New Project on the interface
2. The following interface appears, select Java, then select JDK, and finally click Next to proceed to the next step (mine is jdk1.8)
3. Here is to choose whether to create a Java file when generating the project, and it will be generated after selecting Java Hello World A default Hello world file, click Next to proceed to the next step.
4. Name the project, the default is until, fill in your own name, and finally click
Finish 5. The project is created.
2. Create the Java file:
1. Click src——> new——>package, create a file package, and name the package, similar
to the Eclipse package; name the package
2, create a Java class file under the package, click the package name——>New——>Java Class;
give the class File naming
4. Run the Java file, click Run——>Run...; the
following pop-up box appears, click the file name to run, here is Hello; the
result of the operation