Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

syntax of the switch statement in Java

switch (expression) {

  case value1:
    // code
    break;
  
  case value2:
    // code
    break;
  
  ...
  ...
  
  default:
    // default statements
  }
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #syntax #switch #statement #Java
ADD COMMENT
Topic
Name
1+3 =