Skip to content

Instantly share code, notes, and snippets.

@seanparsons
Created January 15, 2011 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanparsons/781284 to your computer and use it in GitHub Desktop.
Save seanparsons/781284 to your computer and use it in GitHub Desktop.
String intMatch(int number) {
switch (number) {
case 1: return "This is number 1.";
case 2: return "This is number 2, it comes after 1.";
default: return "This number is neither 1 nor 2.";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment