Javatpoint Logo
Javatpoint Logo

IntelliJ IDEA First Java Program

In this, we will create our first Java Project. We are going to write and execute Hello World program.

1. Create Project

Start IntelliJ IDE. Go to File -> New -> Project. The below screen appears.


IntelliJ IDEA First Java Program

Select The Java Project and appropriate Project SDK. Click Next.

Now, Type the Project name and select Project location. Click Finish.


IntelliJ IDEA First Java Program

Once we click on Finish Button, the following screen will open.


IntelliJ IDEA First Java Program

2. Create Package

Go to the Project Structure, right click src -> New -> Package. Enter the Package Name and click Ok Button.


IntelliJ IDEA First Java Program

3. Create Java Class

Go to the Project Structure, right click src -> New -> Java Class. Create the New Class Name and click Ok Button.


IntelliJ IDEA First Java Program

Once we click on Ok Button, the Editor window with the Class Declaration will open. Here we write our code which we want to run and execute.


IntelliJ IDEA First Java Program

4. Run Application

Enter the following code in the Editor Window which will print the output on the console.

Go to the Run menu and select the Run option.

Again Select the Class name and run. The output will appear on the console.


IntelliJ IDEA First Java Program




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials