Skip to content

Instantly share code, notes, and snippets.

@seanparsons
Created January 15, 2011 21:39
Show Gist options
  • Select an option

  • Save seanparsons/781284 to your computer and use it in GitHub Desktop.

Select an option

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