I need to use a case statement in the while loop to identify 'A', 'E', 'I', 'O', 'U', and 'Y' as vowels, but I don't believe I know how too. I've been looking through my 'Absolute Java' book and notes, but I'm totally stumped.
Code
public class ABC {
public static void main(String[] args) {
char alphabet = 'A';
while (alphabet <= 'Z')
{
System.out.println(alphabet + " is a consonant");
alphabet++;
}
}
}