1. When we install Intellij, we open an interface like this:
2. Then we click File->new project
3. We click java on it and then set the project SDK. This is the path where we install jdk, such as: D:\JAVA\jdk1.7.0_75 After
the above is completed, if we do not want to use any framework, the following options are not needed Checked, click next to appear another dialog box asking if we want to use the template, we will not use this place, because I don't know what the template is. Click next directly
to enter a selection of the name and path of the project.
This is up to you, as long as you are happy, then click finish and we have successfully created a java project
4. Under this project, we can see that there can actually be two subfolders , one is idea, the other is src (in the figure the out folder is successful after running, don't care now)
Then we create a package in the src directory: the name is java_study
and then create a class under the package, such as Figure:
5. The name of the class I created here is carpenterClassMethod and edit the class file:
6. Then we click the right mouse button to run the main() function in the file to get the result:
Up to this point, a simple java applet will do, hope it helps you just starting out with intellij Idea.