switch 2 cases same java code example
Example: multiple case switch java
switch (variable)
{
case 5:
case 6:
etc.
case 100:
doSomething();
break;
}
switch (variable)
{
case 5:
case 6:
etc.
case 100:
doSomething();
break;
}