This figure illustrates the New Java Class dialog box.

  1. In the New Java Class dialog box, enter a package name. In this tutorial, the value will typically be

  2. Enter the name of the class in the Name field.

  3. Under Which method stubs would you like to create?, select the public static void main(String[]args) if you want the file to be runnable. Select Constructors from superclass check box if you want stubs of the constructors from the new class's superclass to be added. Inherited abstract methods should be selected by default. This option adds stubs of any abstract methods from superclasses or methods of interfaces that need to be implemented.