010_ Preliminary construction project

Time:2021-6-11

catalogue
    1. Create an empty project: create new project > empty project > enter the project name and select the project path.

    image.png
    image.png
    image.png

    1. Create a new module: File > New > module > java > select module SDK as JDK1.8 > input module name module name > create a new module successfully.

    image.png
    image.png
    image.png
    image.png
    image.png

    1. There are two ways to open the project structure interface.
      1. Click the project structure button in the upper right corner.

    image.png

    1. File->Project Structure。

    image.png

    1. Project > select project SDK as local JDK > select project language level as 8 > apply > OK.

    image.png

    1. Create a new HelloWorld class: right click SRC > New > java class.

    image.png
    image.png
    image.png

    1. Write the code.

    Main shortcut: enter PSVM.
    System shortcut: enter South.

    public class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello,World!");
        }
    }

    image.png

    1. Run code: click the arrow on the left side of the main method – “run” HelloWorld. Main() “to run the main method.

    image.png
    image.png

    1. 2