Take a look at this tutorial on switch statements:
The switch Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)

It could do what you ask, and you can use the default...