Skip to content

Instantly share code, notes, and snippets.

@tmiyamon
Last active December 20, 2015 13:19
Show Gist options
  • Save tmiyamon/6138336 to your computer and use it in GitHub Desktop.
Save tmiyamon/6138336 to your computer and use it in GitHub Desktop.
hard corded switch to choose region name as a method.
if (country_code.equals("JP") == true) {
switch (region_code2) {
case 1:
name = "Aichi";
break;
case 2:
name = "Akita";
break;
case 3:
name = "Aomori";
break;
case 4:
name = "Chiba";
break;
case 5:
name = "Ehime";
break;
case 6:
name = "Fukui";
break;
case 7:
name = "Fukuoka";
break;
case 8:
name = "Fukushima";
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment