ISO 3166-1 (alpha-2/alpha-3/numeric) country code enum in Java.
Switch branches/tags
Nothing to show
Clone or download
TakahikoKawasaki Merge pull request #3 from bhubert/master
Confusion beewteen macao and monaco iso codes
Latest commit 29e6f11 Jun 8, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CountryCode Error in Macao Numeric code Jun 8, 2016
LICENSE Moved CountryCode/LICENSE to LICENSE. Jun 18, 2012
README.md Update README.md Oct 30, 2012

README.md

CountryCode

Note

This repository is deprecated and replaced by nv-i18n. See https://github.com/TakahikoKawasaki/nv-i18n

Overview

ISO 3166-1 (alpha-2/alpha-3/numeric) country code enum in Java.

License

Apache License, Version 2.0

Download

git clone git://github.com/TakahikoKawasaki/CountryCode.git

Javadoc

CountryCode Javadoc

Example

CountryCode cc = CountryCode.getByCode("JP");

System.out.println("Country name = " + cc.getName());                  // "Japan"
System.out.println("ISO 3166-1 alpha-2 code = " + cc.getAlpha2());     // "JP"
System.out.println("ISO 3166-1 alpha-3 code = " + cc.getAlpha3());     // "JPN"
System.out.println("ISO 3166-1 numeric code = " + cc.getNumeric());    // 392

See Also

Author

Takahiko Kawasaki, Neo Visionaries Inc.