...
Code Block | ||
---|---|---|
| ||
int card = 11;
/* Case 11,12,13 fall through to the same case */
switch (card) {
/* ... */
case 11:
System.out.println("Jack");
break;
case 12:
System.out.println("Queen");
break;
case 13:
System.out.println("King");
break;
default:
System.out.println("Invalid Card");
break;
}
|
...