Locale related methods in Java..

.. just a small reference I might check later.

LocaleTest.java
public class LocaleTest {
 
    public static void main(String[] args) {
        final Locale defaultLocale = Locale.getDefault();
        print("getCountry: " + defaultLocale.getCountry());
        print("getDisplayCountry: " + defaultLocale.getDisplayCountry());
        print("getDisplayName: " + defaultLocale.getDisplayName());
        print("ISO3 Country: " + defaultLocale.getISO3Country());
        print("ISO3 Language: " + defaultLocale.getISO3Language());
        print("getLanguage: " + defaultLocale.getLanguage());
        print("toLanguageTag: " + defaultLocale.toLanguageTag());
        print("Printing the locale object: " + defaultLocale);
    }
 
    static void print(Object o) {
        System.out.println(o);
    } 
}

and the output..
MacBook-Pro:~ koraytugay$ java -Duser.language=en -Duser.country=US LocaleTest
getCountry: US
getDisplayCountry: United States
getDisplayName: English (United States)
ISO3 Country: USA
ISO3 Language: eng
getLanguage: en
toLanguageTag: en-US
Printing the locale object: en_US