Thursday 17 September 2015

Display list of countries in Java

In this post, I am going to explain how to display list of countries in Java. In many web applications, it is required to display list of countries as drop down list. You can get all the countries in following ways.
a.   By maintaining a list of countries in a file/database
b.   By hard coding list of countries in Java class file itself.

One disadvantage of above approach is, what if some countries information like name is updated, new country added etc., What if you want to display countries in user specific language etc., You have to handle these cases by yourself.

By using Locale class, you can get all country codes and country full names, “CountryUtil’ application provide following methods to get list of countries and their codes.


Method
Description
public static List<Country> getAllCountries()
Return list of countries.
public static List<Country> getAllCountries(Locale locale)
Returns list of countries in user specific locale.

public class Country {
 private String countryCode;
 private String countryName;

 public Country(String countryCode, String countryName) {
  this.countryCode = countryCode;
  this.countryName = countryName;
 }

 public String getCountryCode() {
  return countryCode;
 }

 public void setCountryCode(String countryCode) {
  this.countryCode = countryCode;
 }

 public String getCountryName() {
  return countryName;
 }

 public void setCountryName(String countryName) {
  this.countryName = countryName;
 }

 @Override
 public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("Country [countryCode=").append(countryCode)
    .append(", countryName=").append(countryName).append("]");
  return builder.toString();
 }

}


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;

public class CountryUtil {
 private static List<Country> countries = new ArrayList<>();
 private static Map<Locale, List<Country>> countryMap = new HashMap<>();

 /**
  * @return list of all @{link Country} objects
  */
 public static List<Country> getAllCountries() {
  if (!countries.isEmpty())
   return countries;

  /* Get country codes */
  String[] countryCodes = Locale.getISOCountries();

  for (String countryCode : countryCodes) {
   Locale obj = new Locale("", countryCode);
   Country country = new Country(obj.getCountry(),
     obj.getDisplayCountry());
   countries.add(country);
  }

  return countries;
 }

 /**
  * @param locale
  *            User specific locale
  * @return list of all @{link Country} objects in user specific language
  */
 public static List<Country> getAllCountries(Locale locale) {
  Objects.nonNull(locale);
  if (countryMap.containsKey(locale))
   return countryMap.get(locale);

  List<Country> temp = new ArrayList<>();

  /* Get country codes */
  String[] countryCodes = Locale.getISOCountries();

  for (String countryCode : countryCodes) {
   Locale obj = new Locale("", countryCode);
   Country country = new Country(obj.getCountry(),
     obj.getDisplayCountry(locale));
   temp.add(country);
  }

  countryMap.put(locale, temp);
  return countryMap.get(locale);
 }
}


import java.util.List;
import java.util.Locale;

public class CountryUtilTest {

 public static void main(String args[]) {
  List<Country> countries = CountryUtil.getAllCountries();
  System.out.println("List of countries");
  countries.forEach(country -> System.out.println(country));

  countries = CountryUtil.getAllCountries(Locale.CHINESE);
  System.out.println("List of countries in Chinese language");
  countries.forEach(country -> System.out.println(country));
 }
}


Output

List of countries
Country [countryCode=AD, countryName=Andorra]
Country [countryCode=AE, countryName=United Arab Emirates]
Country [countryCode=AF, countryName=Afghanistan]
Country [countryCode=AG, countryName=Antigua and Barbuda]
Country [countryCode=AI, countryName=Anguilla]
Country [countryCode=AL, countryName=Albania]
Country [countryCode=AM, countryName=Armenia]
Country [countryCode=AN, countryName=Netherlands Antilles]
Country [countryCode=AO, countryName=Angola]
Country [countryCode=AQ, countryName=Antarctica]
Country [countryCode=AR, countryName=Argentina]
Country [countryCode=AS, countryName=American Samoa]
Country [countryCode=AT, countryName=Austria]
Country [countryCode=AU, countryName=Australia]
Country [countryCode=AW, countryName=Aruba]
Country [countryCode=AX, countryName=Åland Islands]
Country [countryCode=AZ, countryName=Azerbaijan]
Country [countryCode=BA, countryName=Bosnia and Herzegovina]
Country [countryCode=BB, countryName=Barbados]
Country [countryCode=BD, countryName=Bangladesh]
Country [countryCode=BE, countryName=Belgium]
Country [countryCode=BF, countryName=Burkina Faso]
Country [countryCode=BG, countryName=Bulgaria]
Country [countryCode=BH, countryName=Bahrain]
Country [countryCode=BI, countryName=Burundi]
Country [countryCode=BJ, countryName=Benin]
Country [countryCode=BL, countryName=Saint Barthélemy]
Country [countryCode=BM, countryName=Bermuda]
Country [countryCode=BN, countryName=Brunei]
Country [countryCode=BO, countryName=Bolivia]
Country [countryCode=BQ, countryName=Bonaire, Sint Eustatius and Saba]
Country [countryCode=BR, countryName=Brazil]
Country [countryCode=BS, countryName=Bahamas]
Country [countryCode=BT, countryName=Bhutan]
Country [countryCode=BV, countryName=Bouvet Island]
Country [countryCode=BW, countryName=Botswana]
Country [countryCode=BY, countryName=Belarus]
Country [countryCode=BZ, countryName=Belize]
Country [countryCode=CA, countryName=Canada]
Country [countryCode=CC, countryName=Cocos Islands]
Country [countryCode=CD, countryName=The Democratic Republic Of Congo]
Country [countryCode=CF, countryName=Central African Republic]
Country [countryCode=CG, countryName=Congo]
Country [countryCode=CH, countryName=Switzerland]
Country [countryCode=CI, countryName=Côte d'Ivoire]
Country [countryCode=CK, countryName=Cook Islands]
Country [countryCode=CL, countryName=Chile]
Country [countryCode=CM, countryName=Cameroon]
Country [countryCode=CN, countryName=China]
Country [countryCode=CO, countryName=Colombia]
Country [countryCode=CR, countryName=Costa Rica]
Country [countryCode=CU, countryName=Cuba]
Country [countryCode=CV, countryName=Cape Verde]
Country [countryCode=CW, countryName=Curaçao]
Country [countryCode=CX, countryName=Christmas Island]
Country [countryCode=CY, countryName=Cyprus]
Country [countryCode=CZ, countryName=Czech Republic]
Country [countryCode=DE, countryName=Germany]
Country [countryCode=DJ, countryName=Djibouti]
Country [countryCode=DK, countryName=Denmark]
Country [countryCode=DM, countryName=Dominica]
Country [countryCode=DO, countryName=Dominican Republic]
Country [countryCode=DZ, countryName=Algeria]
Country [countryCode=EC, countryName=Ecuador]
Country [countryCode=EE, countryName=Estonia]
Country [countryCode=EG, countryName=Egypt]
Country [countryCode=EH, countryName=Western Sahara]
Country [countryCode=ER, countryName=Eritrea]
Country [countryCode=ES, countryName=Spain]
Country [countryCode=ET, countryName=Ethiopia]
Country [countryCode=FI, countryName=Finland]
Country [countryCode=FJ, countryName=Fiji]
Country [countryCode=FK, countryName=Falkland Islands]
Country [countryCode=FM, countryName=Micronesia]
Country [countryCode=FO, countryName=Faroe Islands]
Country [countryCode=FR, countryName=France]
Country [countryCode=GA, countryName=Gabon]
Country [countryCode=GB, countryName=United Kingdom]
Country [countryCode=GD, countryName=Grenada]
Country [countryCode=GE, countryName=Georgia]
Country [countryCode=GF, countryName=French Guiana]
Country [countryCode=GG, countryName=Guernsey]
Country [countryCode=GH, countryName=Ghana]
Country [countryCode=GI, countryName=Gibraltar]
Country [countryCode=GL, countryName=Greenland]
Country [countryCode=GM, countryName=Gambia]
Country [countryCode=GN, countryName=Guinea]
Country [countryCode=GP, countryName=Guadeloupe]
Country [countryCode=GQ, countryName=Equatorial Guinea]
Country [countryCode=GR, countryName=Greece]
Country [countryCode=GS, countryName=South Georgia And The South Sandwich Islands]
Country [countryCode=GT, countryName=Guatemala]
Country [countryCode=GU, countryName=Guam]
Country [countryCode=GW, countryName=Guinea-Bissau]
Country [countryCode=GY, countryName=Guyana]
Country [countryCode=HK, countryName=Hong Kong]
Country [countryCode=HM, countryName=Heard Island And McDonald Islands]
Country [countryCode=HN, countryName=Honduras]
Country [countryCode=HR, countryName=Croatia]
Country [countryCode=HT, countryName=Haiti]
Country [countryCode=HU, countryName=Hungary]
Country [countryCode=ID, countryName=Indonesia]
Country [countryCode=IE, countryName=Ireland]
Country [countryCode=IL, countryName=Israel]
Country [countryCode=IM, countryName=Isle Of Man]
Country [countryCode=IN, countryName=India]
Country [countryCode=IO, countryName=British Indian Ocean Territory]
Country [countryCode=IQ, countryName=Iraq]
Country [countryCode=IR, countryName=Iran]
Country [countryCode=IS, countryName=Iceland]
Country [countryCode=IT, countryName=Italy]
Country [countryCode=JE, countryName=Jersey]
Country [countryCode=JM, countryName=Jamaica]
Country [countryCode=JO, countryName=Jordan]
Country [countryCode=JP, countryName=Japan]
Country [countryCode=KE, countryName=Kenya]
Country [countryCode=KG, countryName=Kyrgyzstan]
Country [countryCode=KH, countryName=Cambodia]
Country [countryCode=KI, countryName=Kiribati]
Country [countryCode=KM, countryName=Comoros]
Country [countryCode=KN, countryName=Saint Kitts And Nevis]
Country [countryCode=KP, countryName=North Korea]
Country [countryCode=KR, countryName=South Korea]
Country [countryCode=KW, countryName=Kuwait]
Country [countryCode=KY, countryName=Cayman Islands]
Country [countryCode=KZ, countryName=Kazakhstan]
Country [countryCode=LA, countryName=Laos]
Country [countryCode=LB, countryName=Lebanon]
Country [countryCode=LC, countryName=Saint Lucia]
Country [countryCode=LI, countryName=Liechtenstein]
Country [countryCode=LK, countryName=Sri Lanka]
Country [countryCode=LR, countryName=Liberia]
Country [countryCode=LS, countryName=Lesotho]
Country [countryCode=LT, countryName=Lithuania]
Country [countryCode=LU, countryName=Luxembourg]
Country [countryCode=LV, countryName=Latvia]
Country [countryCode=LY, countryName=Libya]
Country [countryCode=MA, countryName=Morocco]
Country [countryCode=MC, countryName=Monaco]
Country [countryCode=MD, countryName=Moldova]
Country [countryCode=ME, countryName=Montenegro]
Country [countryCode=MF, countryName=Saint Martin]
Country [countryCode=MG, countryName=Madagascar]
Country [countryCode=MH, countryName=Marshall Islands]
Country [countryCode=MK, countryName=Macedonia]
Country [countryCode=ML, countryName=Mali]
Country [countryCode=MM, countryName=Myanmar]
Country [countryCode=MN, countryName=Mongolia]
Country [countryCode=MO, countryName=Macao]
Country [countryCode=MP, countryName=Northern Mariana Islands]
Country [countryCode=MQ, countryName=Martinique]
Country [countryCode=MR, countryName=Mauritania]
Country [countryCode=MS, countryName=Montserrat]
Country [countryCode=MT, countryName=Malta]
Country [countryCode=MU, countryName=Mauritius]
Country [countryCode=MV, countryName=Maldives]
Country [countryCode=MW, countryName=Malawi]
Country [countryCode=MX, countryName=Mexico]
Country [countryCode=MY, countryName=Malaysia]
Country [countryCode=MZ, countryName=Mozambique]
Country [countryCode=NA, countryName=Namibia]
Country [countryCode=NC, countryName=New Caledonia]
Country [countryCode=NE, countryName=Niger]
Country [countryCode=NF, countryName=Norfolk Island]
Country [countryCode=NG, countryName=Nigeria]
Country [countryCode=NI, countryName=Nicaragua]
Country [countryCode=NL, countryName=Netherlands]
Country [countryCode=NO, countryName=Norway]
Country [countryCode=NP, countryName=Nepal]
Country [countryCode=NR, countryName=Nauru]
Country [countryCode=NU, countryName=Niue]
Country [countryCode=NZ, countryName=New Zealand]
Country [countryCode=OM, countryName=Oman]
Country [countryCode=PA, countryName=Panama]
Country [countryCode=PE, countryName=Peru]
Country [countryCode=PF, countryName=French Polynesia]
Country [countryCode=PG, countryName=Papua New Guinea]
Country [countryCode=PH, countryName=Philippines]
Country [countryCode=PK, countryName=Pakistan]
Country [countryCode=PL, countryName=Poland]
Country [countryCode=PM, countryName=Saint Pierre And Miquelon]
Country [countryCode=PN, countryName=Pitcairn]
Country [countryCode=PR, countryName=Puerto Rico]
Country [countryCode=PS, countryName=Palestine]
Country [countryCode=PT, countryName=Portugal]
Country [countryCode=PW, countryName=Palau]
Country [countryCode=PY, countryName=Paraguay]
Country [countryCode=QA, countryName=Qatar]
Country [countryCode=RE, countryName=Reunion]
Country [countryCode=RO, countryName=Romania]
Country [countryCode=RS, countryName=Serbia]
Country [countryCode=RU, countryName=Russia]
Country [countryCode=RW, countryName=Rwanda]
Country [countryCode=SA, countryName=Saudi Arabia]
Country [countryCode=SB, countryName=Solomon Islands]
Country [countryCode=SC, countryName=Seychelles]
Country [countryCode=SD, countryName=Sudan]
Country [countryCode=SE, countryName=Sweden]
Country [countryCode=SG, countryName=Singapore]
Country [countryCode=SH, countryName=Saint Helena]
Country [countryCode=SI, countryName=Slovenia]
Country [countryCode=SJ, countryName=Svalbard And Jan Mayen]
Country [countryCode=SK, countryName=Slovakia]
Country [countryCode=SL, countryName=Sierra Leone]
Country [countryCode=SM, countryName=San Marino]
Country [countryCode=SN, countryName=Senegal]
Country [countryCode=SO, countryName=Somalia]
Country [countryCode=SR, countryName=Suriname]
Country [countryCode=SS, countryName=South Sudan]
Country [countryCode=ST, countryName=Sao Tome And Principe]
Country [countryCode=SV, countryName=El Salvador]
Country [countryCode=SX, countryName=Sint Maarten (Dutch part)]
Country [countryCode=SY, countryName=Syria]
Country [countryCode=SZ, countryName=Swaziland]
Country [countryCode=TC, countryName=Turks And Caicos Islands]
Country [countryCode=TD, countryName=Chad]
Country [countryCode=TF, countryName=French Southern Territories]
Country [countryCode=TG, countryName=Togo]
Country [countryCode=TH, countryName=Thailand]
Country [countryCode=TJ, countryName=Tajikistan]
Country [countryCode=TK, countryName=Tokelau]
Country [countryCode=TL, countryName=Timor-Leste]
Country [countryCode=TM, countryName=Turkmenistan]
Country [countryCode=TN, countryName=Tunisia]
Country [countryCode=TO, countryName=Tonga]
Country [countryCode=TR, countryName=Turkey]
Country [countryCode=TT, countryName=Trinidad and Tobago]
Country [countryCode=TV, countryName=Tuvalu]
Country [countryCode=TW, countryName=Taiwan]
Country [countryCode=TZ, countryName=Tanzania]
Country [countryCode=UA, countryName=Ukraine]
Country [countryCode=UG, countryName=Uganda]
Country [countryCode=UM, countryName=United States Minor Outlying Islands]
Country [countryCode=US, countryName=United States]
Country [countryCode=UY, countryName=Uruguay]
Country [countryCode=UZ, countryName=Uzbekistan]
Country [countryCode=VA, countryName=Vatican]
Country [countryCode=VC, countryName=Saint Vincent And The Grenadines]
Country [countryCode=VE, countryName=Venezuela]
Country [countryCode=VG, countryName=British Virgin Islands]
Country [countryCode=VI, countryName=U.S. Virgin Islands]
Country [countryCode=VN, countryName=Vietnam]
Country [countryCode=VU, countryName=Vanuatu]
Country [countryCode=WF, countryName=Wallis And Futuna]
Country [countryCode=WS, countryName=Samoa]
Country [countryCode=YE, countryName=Yemen]
Country [countryCode=YT, countryName=Mayotte]
Country [countryCode=ZA, countryName=South Africa]
Country [countryCode=ZM, countryName=Zambia]
Country [countryCode=ZW, countryName=Zimbabwe]
List of countries in Chinese language
Country [countryCode=AD, countryName=安道尔]
Country [countryCode=AE, countryName=阿拉伯联合酋长国]
Country [countryCode=AF, countryName=阿富汗]
Country [countryCode=AG, countryName=安提瓜和巴布达]
Country [countryCode=AI, countryName=安圭拉]
Country [countryCode=AL, countryName=阿尔巴尼亚]
Country [countryCode=AM, countryName=亚美尼亚]
Country [countryCode=AN, countryName=荷属安的列斯群岛]
Country [countryCode=AO, countryName=安哥拉]
Country [countryCode=AQ, countryName=南极洲]
Country [countryCode=AR, countryName=阿根廷]
Country [countryCode=AS, countryName=东萨摩亚]
Country [countryCode=AT, countryName=奥地利]
Country [countryCode=AU, countryName=澳大利亚]
Country [countryCode=AW, countryName=阿鲁巴]
Country [countryCode=AX, countryName=奥兰群岛]
Country [countryCode=AZ, countryName=阿塞拜疆]
Country [countryCode=BA, countryName=波斯尼亚和黑山共和国]
Country [countryCode=BB, countryName=巴巴多斯]
Country [countryCode=BD, countryName=孟加拉]
Country [countryCode=BE, countryName=比利时]
Country [countryCode=BF, countryName=布基纳法索]
Country [countryCode=BG, countryName=保加利亚]
Country [countryCode=BH, countryName=巴林]
Country [countryCode=BI, countryName=布隆迪]
Country [countryCode=BJ, countryName=贝宁]
Country [countryCode=BL, countryName=圣巴泰勒米岛]
Country [countryCode=BM, countryName=百慕大]
Country [countryCode=BN, countryName=文莱]
Country [countryCode=BO, countryName=玻利维亚]
Country [countryCode=BQ, countryName=博奈尔岛, 圣尤斯特歇斯岛和萨巴岛]
Country [countryCode=BR, countryName=巴西]
Country [countryCode=BS, countryName=巴哈马]
Country [countryCode=BT, countryName=不丹]
Country [countryCode=BV, countryName=布韦岛]
Country [countryCode=BW, countryName=博茨瓦纳]
Country [countryCode=BY, countryName=白俄罗斯]
Country [countryCode=BZ, countryName=伯里兹]
Country [countryCode=CA, countryName=加拿大]
Country [countryCode=CC, countryName=科库斯群岛]
Country [countryCode=CD, countryName=刚果民主共和国]
Country [countryCode=CF, countryName=中非共和国]
Country [countryCode=CG, countryName=刚果]
Country [countryCode=CH, countryName=瑞士]
Country [countryCode=CI, countryName=象牙海岸]
Country [countryCode=CK, countryName=库克群岛]
Country [countryCode=CL, countryName=智利]
Country [countryCode=CM, countryName=喀麦隆]
Country [countryCode=CN, countryName=中国]
Country [countryCode=CO, countryName=哥伦比亚]
Country [countryCode=CR, countryName=哥斯达黎加]
Country [countryCode=CU, countryName=古巴]
Country [countryCode=CV, countryName=佛得角]
Country [countryCode=CW, countryName=库拉索岛]
Country [countryCode=CX, countryName=圣诞岛]
Country [countryCode=CY, countryName=塞浦路斯]
Country [countryCode=CZ, countryName=捷克共和国]
Country [countryCode=DE, countryName=德国]
Country [countryCode=DJ, countryName=吉布提]
Country [countryCode=DK, countryName=丹麦]
Country [countryCode=DM, countryName=多米尼加联邦]
Country [countryCode=DO, countryName=多米尼加共和国]
Country [countryCode=DZ, countryName=阿尔及利亚]
Country [countryCode=EC, countryName=厄瓜多尔]
Country [countryCode=EE, countryName=爱沙尼亚]
Country [countryCode=EG, countryName=埃及]
Country [countryCode=EH, countryName=西撒哈拉]
Country [countryCode=ER, countryName=厄里特尼亚]
Country [countryCode=ES, countryName=西班牙]
Country [countryCode=ET, countryName=埃塞俄比亚]
Country [countryCode=FI, countryName=芬兰]
Country [countryCode=FJ, countryName=斐济]
Country [countryCode=FK, countryName=富克兰群岛]
Country [countryCode=FM, countryName=密克罗尼西亚]
Country [countryCode=FO, countryName=法罗群岛]
Country [countryCode=FR, countryName=法国]
Country [countryCode=GA, countryName=加蓬]
Country [countryCode=GB, countryName=英国]
Country [countryCode=GD, countryName=格林纳达]
Country [countryCode=GE, countryName=格鲁吉亚]
Country [countryCode=GF, countryName=法属圭亚那]
Country [countryCode=GG, countryName=格恩西岛]
Country [countryCode=GH, countryName=加纳]
Country [countryCode=GI, countryName=直布罗陀]
Country [countryCode=GL, countryName=格陵兰]
Country [countryCode=GM, countryName=冈比亚]
Country [countryCode=GN, countryName=几内亚]
Country [countryCode=GP, countryName=瓜德罗普岛]
Country [countryCode=GQ, countryName=赤道几内亚]
Country [countryCode=GR, countryName=希腊]
Country [countryCode=GS, countryName=南乔治亚岛和南桑德韦奇岛]
Country [countryCode=GT, countryName=危地马拉]
Country [countryCode=GU, countryName=关岛]
Country [countryCode=GW, countryName=几内亚比绍共和国]
Country [countryCode=GY, countryName=圭亚那]
Country [countryCode=HK, countryName=香港]
Country [countryCode=HM, countryName=赫德和麦克唐纳群岛]
Country [countryCode=HN, countryName=洪都拉斯]
Country [countryCode=HR, countryName=克罗地亚]
Country [countryCode=HT, countryName=海地]
Country [countryCode=HU, countryName=匈牙利]
Country [countryCode=ID, countryName=印度尼西亚]
Country [countryCode=IE, countryName=爱尔兰]
Country [countryCode=IL, countryName=以色列]
Country [countryCode=IM, countryName=曼岛]
Country [countryCode=IN, countryName=印度]
Country [countryCode=IO, countryName=英属印度洋领地]
Country [countryCode=IQ, countryName=伊拉克]
Country [countryCode=IR, countryName=伊朗]
Country [countryCode=IS, countryName=冰岛]
Country [countryCode=IT, countryName=意大利]
Country [countryCode=JE, countryName=泽西岛]
Country [countryCode=JM, countryName=牙买加]
Country [countryCode=JO, countryName=约旦]
Country [countryCode=JP, countryName=日本]
Country [countryCode=KE, countryName=肯尼亚]
Country [countryCode=KG, countryName=吉尔吉克斯坦]
Country [countryCode=KH, countryName=柬埔寨]
Country [countryCode=KI, countryName=基里巴斯]
Country [countryCode=KM, countryName=科摩罗]
Country [countryCode=KN, countryName=圣基茨和尼维斯]
Country [countryCode=KP, countryName=朝鲜]
Country [countryCode=KR, countryName=韩国]
Country [countryCode=KW, countryName=科威特]
Country [countryCode=KY, countryName=开曼群岛]
Country [countryCode=KZ, countryName=哈萨克斯坦]
Country [countryCode=LA, countryName=老挝]
Country [countryCode=LB, countryName=黎巴嫩]
Country [countryCode=LC, countryName=圣卢西亚]
Country [countryCode=LI, countryName=列支敦士登]
Country [countryCode=LK, countryName=斯里兰卡]
Country [countryCode=LR, countryName=利比里亚]
Country [countryCode=LS, countryName=莱索托]
Country [countryCode=LT, countryName=立陶宛]
Country [countryCode=LU, countryName=卢森堡]
Country [countryCode=LV, countryName=拉脱维亚]
Country [countryCode=LY, countryName=利比亚]
Country [countryCode=MA, countryName=摩洛哥]
Country [countryCode=MC, countryName=摩纳哥]
Country [countryCode=MD, countryName=摩尔多瓦]
Country [countryCode=ME, countryName=黑山]
Country [countryCode=MF, countryName=圣马丁]
Country [countryCode=MG, countryName=马达加斯加]
Country [countryCode=MH, countryName=马绍尔群岛]
Country [countryCode=MK, countryName=马其顿王国]
Country [countryCode=ML, countryName=马里]
Country [countryCode=MM, countryName=缅甸]
Country [countryCode=MN, countryName=蒙古]
Country [countryCode=MO, countryName=澳门特区]
Country [countryCode=MP, countryName=美属北马里亚纳群岛]
Country [countryCode=MQ, countryName=马提尼克岛]
Country [countryCode=MR, countryName=毛里塔尼亚]
Country [countryCode=MS, countryName=蒙特塞拉群岛]
Country [countryCode=MT, countryName=马耳他]
Country [countryCode=MU, countryName=毛里求斯]
Country [countryCode=MV, countryName=马尔代夫]
Country [countryCode=MW, countryName=马拉维]
Country [countryCode=MX, countryName=墨西哥]
Country [countryCode=MY, countryName=马来西亚]
Country [countryCode=MZ, countryName=莫桑比克]
Country [countryCode=NA, countryName=纳米比亚]
Country [countryCode=NC, countryName=新克里多尼亚群岛]
Country [countryCode=NE, countryName=尼日尔]
Country [countryCode=NF, countryName=诺福克岛]
Country [countryCode=NG, countryName=尼日利亚]
Country [countryCode=NI, countryName=尼加拉瓜]
Country [countryCode=NL, countryName=荷兰]
Country [countryCode=NO, countryName=挪威]
Country [countryCode=NP, countryName=尼泊尔]
Country [countryCode=NR, countryName=瑙鲁]
Country [countryCode=NU, countryName=纽埃岛]
Country [countryCode=NZ, countryName=新西兰]
Country [countryCode=OM, countryName=阿曼]
Country [countryCode=PA, countryName=巴拿马]
Country [countryCode=PE, countryName=秘鲁]
Country [countryCode=PF, countryName=法属玻利尼西亚]
Country [countryCode=PG, countryName=巴布亚新几内亚]
Country [countryCode=PH, countryName=菲律宾]
Country [countryCode=PK, countryName=巴基斯坦]
Country [countryCode=PL, countryName=波兰]
Country [countryCode=PM, countryName=圣皮埃尔和密克隆群岛]
Country [countryCode=PN, countryName=皮特克恩岛]
Country [countryCode=PR, countryName=波多黎哥]
Country [countryCode=PS, countryName=巴勒斯坦]
Country [countryCode=PT, countryName=葡萄牙]
Country [countryCode=PW, countryName=帕劳]
Country [countryCode=PY, countryName=巴拉圭]
Country [countryCode=QA, countryName=卡塔尔]
Country [countryCode=RE, countryName=留尼汪岛]
Country [countryCode=RO, countryName=罗马尼亚]
Country [countryCode=RS, countryName=塞尔维亚]
Country [countryCode=RU, countryName=俄罗斯]
Country [countryCode=RW, countryName=卢旺达]
Country [countryCode=SA, countryName=沙特阿拉伯]
Country [countryCode=SB, countryName=所罗门群岛]
Country [countryCode=SC, countryName=塞舌尔群岛]
Country [countryCode=SD, countryName=苏丹]
Country [countryCode=SE, countryName=瑞典]
Country [countryCode=SG, countryName=新加坡]
Country [countryCode=SH, countryName=圣赫勒拿岛]
Country [countryCode=SI, countryName=斯洛文尼亚]
Country [countryCode=SJ, countryName=斯瓦尔巴特和扬马延岛]
Country [countryCode=SK, countryName=斯洛伐克]
Country [countryCode=SL, countryName=塞拉里昂]
Country [countryCode=SM, countryName=圣马力诺]
Country [countryCode=SN, countryName=塞内加尔]
Country [countryCode=SO, countryName=索马里]
Country [countryCode=SR, countryName=苏里南]
Country [countryCode=SS, countryName=南苏丹]
Country [countryCode=ST, countryName=圣多美和普林西比]
Country [countryCode=SV, countryName=萨尔瓦多]
Country [countryCode=SX, countryName=荷属圣马丁岛]
Country [countryCode=SY, countryName=叙利亚]
Country [countryCode=SZ, countryName=斯威士兰]
Country [countryCode=TC, countryName=特克斯群岛和凯科斯群岛]
Country [countryCode=TD, countryName=乍得]
Country [countryCode=TF, countryName=法属南特立尼达]
Country [countryCode=TG, countryName=多哥]
Country [countryCode=TH, countryName=泰国]
Country [countryCode=TJ, countryName=塔吉克斯坦]
Country [countryCode=TK, countryName=联合群岛]
Country [countryCode=TL, countryName=东帝汶]
Country [countryCode=TM, countryName=土库曼斯坦]
Country [countryCode=TN, countryName=突尼斯]
Country [countryCode=TO, countryName=汤加]
Country [countryCode=TR, countryName=土耳其]
Country [countryCode=TT, countryName=特立尼达和多巴哥]
Country [countryCode=TV, countryName=图瓦卢]
Country [countryCode=TW, countryName=台湾地区]
Country [countryCode=TZ, countryName=坦桑尼亚]
Country [countryCode=UA, countryName=乌克兰]
Country [countryCode=UG, countryName=乌干达]
Country [countryCode=UM, countryName=美属小奥特兰群岛]
Country [countryCode=US, countryName=美国]
Country [countryCode=UY, countryName=乌拉圭]
Country [countryCode=UZ, countryName=乌兹别克斯坦]
Country [countryCode=VA, countryName=梵蒂冈]
Country [countryCode=VC, countryName=圣文森特和格林纳丁斯]
Country [countryCode=VE, countryName=委内瑞拉]
Country [countryCode=VG, countryName=英属维京群岛]
Country [countryCode=VI, countryName=美属维京群岛]
Country [countryCode=VN, countryName=越南]
Country [countryCode=VU, countryName=瓦努阿图]
Country [countryCode=WF, countryName=瓦利斯群岛和富图纳群岛]
Country [countryCode=WS, countryName=东萨摩亚]
Country [countryCode=YE, countryName=也门]
Country [countryCode=YT, countryName=马约特岛]
Country [countryCode=ZA, countryName=南非]
Country [countryCode=ZM, countryName=赞比亚]
Country [countryCode=ZW, countryName=津巴布韦]



No comments:

Post a Comment