1. In the Package Explorer, double-click a compilation unit to open it in an editor.
2. Type the code for the class at the desired position in the compilation unit.
Creating a new Java class
Creating a top-level class
Creating a nested class
Renaming a class, field, or interface
Renaming a compilation unit
Setting execution arguments