How to create a java file?
(1) After opening the Eclipse program, first start the JAVA project in Eclipse To create a new project, select "File - New - Java Project" in the option bar above, and the system will pop up the property settings of the new project.
(2) In the setting page of Java Project, mainly set the project name setting and path setting of the project. The path of "Java Project" is usually the default path. Cancel Check "Use default location" to reset the path.
(3) After completing the setting of the name and path of "Java Project", click "Finish" to complete the settings and create a new project.
# (4) The system will enter the project editing page, and program writing cannot be performed at this time.
(5) "Java Project" is an outer frame of the java project. Next, you need to create a new project package inside java. Select "File——" in the upper option bar. New——Package"Create a new java project package.
(6) After confirming the new "Package", the system will pop up the property settings of the new project. You only need to set the name of the "Package" and click "Finish" "Complete the new creation.
(7) After completing the new creation, you can see that in the "src" file in the file browser on the left, there is an additional name of the newly created "Package", right-click Click and select "New - Class" to create "java class (class)".
(8) The same as the steps for creating a new project before. The system will pop up the property settings of the project. You only need to set the name. The best name and function are A certain amount of contact will facilitate future management and maintenance.
(9) After completing the creation of "Class", the main page of the system will display the programming page, and then you can start programming the java project. In the appropriate Just write the program in the location.
The above is the detailed content of How to create java file. For more information, please follow other related articles on the PHP Chinese website!