Skip to content

TakahikoKawasaki/CountryCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages