Skip to content
ISO 3166-1 (alpha-2/alpha-3/numeric) country code enum in Java.
Java
Find file
Pull request Compare This branch is 1 commit ahead, 2 commits behind TakahikoKawasaki:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
CountryCode
LICENSE
README.md

README.md

CountryCode

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.

Something went wrong with that request. Please try again.