Skip to content

Instantly share code, notes, and snippets.

@ron623
Created March 8, 2015 04:44
Show Gist options
  • Save ron623/ceabbab63db776655c32 to your computer and use it in GitHub Desktop.
Save ron623/ceabbab63db776655c32 to your computer and use it in GitHub Desktop.
switch
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