Java switch statement multiple cases
Sadly, it's not possible in Java. You'll have to resort to using if-else
statements.
The second option is completely fine. I'm not sure why a responder said it was not possible. This is fine, and I do this all the time:
switch (variable)
{
case 5:
case 6:
etc.
case 100:
doSomething();
break;
}