In an Existing Compilation Unit

An alternative way to create a new interface is to add it to an existing compilation unit. Double-click a compilation unit in the Packages view and type the code for the interface at the desired position in the compilation unit.