The switch Statement example in Java - Java samples - Programming tutorials on Java, C, C++, PHP, AS
Unlike if-then and if-then-else, the switch statement allows for any number of possible execution paths. A switch works with the byte, short, char, and int primitive data types. It also works with enumerated types and a few special classes that...