Learn JAVA using Intellij IDEA ide

Hi All,

Today I am going to show on to write JAVA language using IDE named Intellij IDEA.

Have a look !!!!.

Step 1 – C reate a New Project

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

 

Select The Java Project and appropriate Project SDK. Click Next. Don’t tick any box.

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

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

Step 2 – Create Package

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

Step 3 – Create Java Class

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

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.

 

Step 4 – Run Application

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

public class MyClass {  

        public static void main(String[] args) {  

           System.out.println("Test World !!");  
       }  

}

Go to the Run menu and select the Run option.

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

 

 

DONE !!!!!