Locale Class Flashcards
Returns a list of avaliable locales supported by the JVM.
static Locale[] getAvailableLocales()
Returns the default locale of the JVM.
static Locale getDefault()
Sets the default locale of the JVM.
static void setDefault(Locale newLocale)
Returns the country code for the locale object.
String getCountry()
Returns the country name for the locale object.
String getDisplayCountry()
Returns the language code for the locale object.
String getLanguage()
Returns the language name for the locale object.
String getDisplayLanguage()
Returns the variant code for the locale object.
String getVariant()
Returns the name of the variant code for the locale object.
String getDisplayVariant()
Overridden method of Object that returns a string comprised of the codes for the locale’s language, country, variant, etc.
String toString()