hi guys a beginner here. can i get some help ? how do i prevent error for eg. i only one Y/y or N/n to be written and when other characters or integers are written, it will show an error message. the default doest seem to be working
switch(Confirm)
{
case 'n':
case 'N':
EnterTheUsage();break;
case 'y':
case 'Y':
DisplayTheUsage();break;
default: System.out.println("Pls enter only Y or N.");
}