can we write case 0,1: in switch statement in java code example
Example: java switch case
switch(x){
case(0): //if x == 0
//do some stuff
break;
//add more cases
default: //when x does not match any case
//do some stuff
break;
}