When to use a switch statement in Java

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-01-20T16:36:53Z Indexed on 2010/03/28 14:03 UTC
Read the original article Hit count: 335

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about switch