Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

switch java

int num = 1;

switch(num) {
  case 0: 
    println("Zero");  // Does not execute
    break;
  case 1: 
    println("One");  // Prints "One"
    break;
}
 Copy
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #java
ADD COMMENT
Topic
Name
6+3 =