Get Country List in Java


This example shows how to get country list in Java. Best way to get the list of countries is using getISOCountries method of Locale class.

The Locale.getISOCountries() will return a list of all 2-letter country codes defined in ISO 3166


Country Code = AD, Country Name = Andorra
Country Code = AE, Country Name = United Arab Emirates
Country Code = AF, Country Name = Afghanistan
Country Code = AG, Country Name = Antigua and Barbuda
Country Code = AI, Country Name = Anguilla
Country Code = AL, Country Name = Albania
//skip ……
Share This Post On: