Skip to content

Instantly share code, notes, and snippets.

@ron623
Created March 8, 2015 04:48
Show Gist options
  • Save ron623/cd93cb4239dd2895d5fe to your computer and use it in GitHub Desktop.
Save ron623/cd93cb4239dd2895d5fe to your computer and use it in GitHub Desktop.
sitch_error
package test;
public class Test {
static Integer 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