Created
March 8, 2015 04:44
-
-
Save ron623/ceabbab63db776655c32 to your computer and use it in GitHub Desktop.
switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
public class Test { | |
static int num; | |
public static void main(String[] args) { | |
switch (num) { | |
case 0: | |
System.out.println("0です"); | |
break; | |
case 1: | |
System.out.println("1です"); | |
break; | |
default: | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment