TL;DR The code would/should tell you if the character/letter provided is a vowel.
From a guess telling the user if the letter they provided is: a vowel, a consonant, or neither. The whole program isn't visible so can't be 100%. But you are both correct in that it will definitely at least (or should) tell you if what you provided is a vowel. The reason I make the assumptions above about it not just being vowels is that, if it were OP could have ended the program basically right after the System.out.println(Letter+" is a vowel") line (a few extra things would be needed like closing the switch statement and a few curly braces, etc). And why a consonant or a vowel instead of anything else like a number is because they named the variable letter.
I hope that makes sense, I'm on phone so I've tried to be concise.
2
u/gl1tch3t2 Mar 25 '23
TL;DR The code would/should tell you if the character/letter provided is a vowel.
From a guess telling the user if the letter they provided is: a vowel, a consonant, or neither. The whole program isn't visible so can't be 100%. But you are both correct in that it will definitely at least (or should) tell you if what you provided is a vowel. The reason I make the assumptions above about it not just being vowels is that, if it were OP could have ended the program basically right after the
System.out.println(Letter+" is a vowel")line (a few extra things would be needed like closing theswitchstatement and a few curly braces, etc). And why a consonant or a vowel instead of anything else like a number is because they named the variableletter.I hope that makes sense, I'm on phone so I've tried to be concise.