Writing switch statements

You can write switch statements using the following format:

switch (condition) {
case A :
    // statements
    // falls through
case B :
    // statements
    break;
case Z :
    // statements
    break;
default :
    // statements
    break;
}