Skip to content

Instantly share code, notes, and snippets.

@agustarc
Created June 4, 2017 06:34
Show Gist options
  • Save agustarc/df240c53a6fcb844e9f4c3d4ccfa9420 to your computer and use it in GitHub Desktop.
Save agustarc/df240c53a6fcb844e9f4c3d4ccfa9420 to your computer and use it in GitHub Desktop.
switch(x) {
case 1 :
println("x is 1");
break;
case 2 :
println("x is 2");
break;
default :
println("x is neither 1 nor 2");
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment