Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java switch

switch (variable){
    case A: 
    	handleCaseA(); 
    	break;
    case B:
    	handleCaseB(); 
    	break;
    default: handleDefaultCase(); break;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #switch
ADD COMMENT
Topic
Name
4+2 =