Skip to content
Advertisement

In Intellij, when I create new package and after right click new -> java class doesn’t show

In new Interface package when I right-click in new java class option nit shown

screenshot

Advertisement

Answer

interface is not a valid package name, because it is a Java keyword. A keyword can not be used as an identifier, for example as a package name, variable name or class name. If you choose a different name for your package, the option to create a Java class should appear.

Advertisement