getDisplayName()

String getDisplayName()
Returns a name for the locale.
String getDisplayName(Locale inLocale)
Returns a name for the locale for passed in inLocale.

import java.util.Locale;

public class MainClass {
  public static void main(String args[]) throws Exception {
    Locale defaultLocale = Locale.getDefault();
    System.out.println(defaultLocale.getDisplayName());
    System.out.println(defaultLocale.getDisplayName(Locale.ITALIAN));
    System.out.println(defaultLocale.getDisplayName(Locale.US));
  }
}
Home 
  Java Book 
    Essential Classes  

Locale:
  1. Locale class
  2. Locale.ITALY
  3. Use Locale with DateFormat
  4. new Locale(String language, String country, String variant)
  5. getDefault()
  6. getDisplayCountry()
  7. getDisplayCountry(Locale inLocale)
  8. getDisplayLanguage()
  9. getDisplayName()
  10. getDisplayVariant()
  11. getISOCountries()
  12. getISOLanguages()
  13. setDefault(Locale newLocale)