Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

switch expression

switch(expression) {
    case value1:
        statement(s)
        break;
		
    case value2:
        statement(s)
        break;
		
	/* you can give any number of cases */
	
    default:
        statement(s)
}
Source by www.codesdope.com #
 
PREVIOUS NEXT
Tagged: #switch #expression
ADD COMMENT
Topic
Name
6+2 =