The first Hello World Java program

The first Hello World Java program

Hello World

Create a Java project under the Idea editor path relationships:
Project → Package → .java
namely: In the Idea, in a Project, we can create multiple Package packages, each package a Package, you can have multiple java files . (Note: all projects related code, must be under the src folder.)

Create a project process:
Open the idea to create a java project

Select the JDK version and Next
Select the JDK version and Next

The next step
The next step

Create a project name and choose the path to save the project
Create a project name and choose the path to save the project

All project code must be written in the src directory
All project code must be written in the src directory

Creating a Package
Creating a Package

Create a java file
Create a java file

Write the code HelloWorld
Write the code HelloWorld

Guess you like

Origin www.cnblogs.com/HelloZyjS/p/12320999.html