Locale.getCountryCode

Overview | Methods | This Package | All Packages

Locale.getCountryCode

Retrieves the country code, based on international telephone codes.

Syntax

public int getCountryCode()

Return Value

Returns an integer value that denotes the country code for the current locale.

Remarks

Use this method to retrieve the country code for the current locale. You can use the country code to determine which country the current locale is in, as well as to display the appropriate country code when requesting telephone number information in an application.

See Also   getCountry, getDefaultCountry, getNativeCountry, getEnglishCountry, getAbbrevCountry, getISO3116CountryName