public class MainClass {
public static void main(String[] args) {
char yesNo = 'N';
switch(yesNo) {
case 'n': case 'N':
System.out.println("No selected");
break;
case 'y': case 'Y':
System.out.println("Yes selected");
break;
}
}
}
No selected