Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;
}
 
PREVIOUS NEXT
Tagged: #java #switch #case
ADD COMMENT
Topic
Name
9+5 =