public class dbxdbff {
static Scanner k = new Scanner(System.in);
public static void main(String[] args) {
// TODO 自動產生的方法 Stub
test();
test();
test();
test();
}
private static void test() {
System.out.print("Input a character");
String x=k.nextLine();
switch(x){
case "a":
case "b":
System.out.println("You enter a or b");
break;
case "x":
System.out.println("You enter x");
break;
case "y":
System.out.println("You enter y");
break;
}