trying to take char input and display whether a vowel
i get error saying that enum has illegal start of expression and that it must not be local
boolean.java:6: illegal start of expression
public enum vowels
^
boolean.java:6:enum types must not be local
public enum vowels
^
im really new and i dont know what ive done
public class Boolean { public static void main (String[] args) { public enum vowels { A('a'),E('e'),I('i'),O('o'),U('u'); } char letterinput; boolean isVowel; System.out.print("Enter a letter: "); int c = System.in.read(); letterinput = (char)c; while(System.in.available() > 0) { System.in.read(); } if (letterinput == vowels) { isVowel = true; System.out.println(letterinput + "is a vowel"); } else { isVowel = false; System.out.println(letterinput + "is not a vowel"); } } }