Open the New Java Class wizard
You can use the New Java Class Wizard to create Java classes, and you can open the Java Class Wizard in the following ways:
- Click on the "File" menu and select New > Class
- Right-click in the Package Explorer window and select New > Class
- Click the drop-down button () of the class and select ()
Before you open the Create Java Class Wizard, it is a good idea to choose the package name that the Java class belongs to, so that the package name field is automatically populated when you create the Java class.
Using the New Java Class wizard
In the popup window of the Java Class Wizard you can do the following:
- Confirm that the folder name (Source folder) and package name are correct
- Enter the class name
- Choose a different decoration class
- Enter the name of the superclass (superclass) or click the Browse button to select a class that already exists
- Click the Add button to select the interface that the class implements
- In the check box, you can select how the method is created and whether to automatically generate comments
To view new Java classes
In the package Explorer view we can see the new class and we can modify the code from the Java editor on the right.
Eclipse create Java Class---Eclipse tutorial lesson 10th