When to use a switch statement in Java
- by Dan
I appreciate that anything that can be done done by a switch statment can be done by an if else statement.
But are there stylistic rules for when one should use the switch rather than if else statment.