Creating a new Java enum

Use the New Java Enum wizard to create a new Java enum. There are a number of ways to open this wizard:

  1. Select the container where you want the new enum to reside.
  2. Click the New Java Enum button in the workbench toolbar.

or

  1. Select the container where you want the new enum to reside.
  2. From the container's pop-up menu, select New > Enum.

or

  1. Select the container where you want the new enum to reside.
  2. From the drop-down menu on the New button in the workbench toolbar, select Enum.

or

  1. Click the New button in the workbench toolbar to open the New wizard.
  2. Select Java > Enum and click Next.

or

  1. Select the container where you want the new enum to reside.
  2. Then, select from the menu bar File > New > Enum.

Related concepts

Java projects

Related tasks

Renaming a type

Related reference

New Java Enum wizard
Java Toolbar actions
Package Explorer