In this tutorial, we will learn the steps to create new class in a Java project using IntelliJ IDEA IDE.
Create Java Project in IntelliJ:
Create New Class
It’s recommended to create a package before creating a class. Steps to create a package:
Select the package from the left Project window.
Choose File >> New >> Java Class
Alternatively, choose the package and right-click on the package, choose New >> Java Class.
Enter the new class name and hit Enter button. For Example, HelloWorld
This will create a class under the selected package. The filename HelloWorld.java would be created in the project under the directory
That’s it. We have successfully created a new java class in IntelliJ IDE. Now, we can add Java code to the class.
IntelliJ IDEA Tutorials
IntelliJ IDE tutorials on this website can be found at:
More information on IntelliJ IDE visit the official website: