Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

radioramax/CountryCode

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 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

 
 
 

Contributors

Languages

  • Java 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.