switch case two 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;
}