I’m new to Java and trying to setup a switch statement using enums. for the declaration of my enums however I am getting compilation errors such as “illegal start of type”, so my question is if names such as are appropriate?
public enum Types
{
<CD>, <Title>
}
No, enum constants, like all Java identifiers, must start with a letter, a currency character ($), or a connecting character (most common being
_).