Zebra0.com

java switchswitch: looking at one variable

switch: looking at one variable

In this example, we print the month based on the month using switch. Compare this to the example using nested if/else.