1. Hello World under the INTELLIJ environment
1. Start the IntelliJ IDE and select file->new->project
Select Java if the project SDK does not appear, select New,jdk
Select new->jdk-> point to the Java SDK installation folder (typically located in C:\Program Files (x86) \JAVA\JDK (version number))
Select the project folder and project name (Hello World) after selecting next directly (not from template creation)
Select Project->sdk->java 1.8 (version associated with the Java version you installed, if not present-")
After the creation has finished entering the development interface, right click on the Hello_world project name and select New->java Class
Create a new class with any input class name (same as rule and C)
Enter main function and output Hello_world statement
Select the small button next to the Debug triangle in the upper right corner and the Edit Configuration appears
Select + Sign, add application
After selecting application, select main class, and the main classes that you just defined appear
Select the JRE package to select the Java package included with the JDK
Select OK to return to the interface
This time the green triangle becomes available, click on the triangle, the results of the operation appear
2. Hello World in Eclipse
1. Select ecplise Work Path
2. Select File--New->java Project
Configure the compiler to select the JRE in the execution environment JRE or your own installed JDK
Click on the left-most file under the Restore, the Java window appears, select Maximize.
3. Select the Hello_world project name and right-click to select New Package (optional)
4. Create a new class, configure the class name
5. Enter the code after the class is configured, and get the result after execution
Hello World in IntelliJ and eclipse