I just learned about enums and am a bit confused. I want to declare my enums all in one File I found this question and for all I can see did exactly that
Multiple Enum Classes in one Java File
only that it does not work
public class DERstring{
public enum Fertigkeit
{
UEBER = "Überreden";
HEIML = "Heimlichkeit";
SUCHE = "Suchen";
}
public enum Terrain
{
LEICHT = "leicht";
MITTEL = "mittelschwer";
UNPASS = "unpassierbar";
}
}
for each inner ennum class eclipse gives me the Error "insert 'EnumBody to complete ClassBodyDeclaration. What is it I'm doing wrong here?