getDisplayLanguage()

String getDisplayLanguage()
Returns a name for the locale's language
 
import java.util.Locale;

public class Main {
  public static void main(String args[]) {
    Locale currentLocale = Locale.getDefault();
    Locale locales[] = { Locale.TAIWAN, Locale.KOREA, Locale.ITALY, Locale.CANADA,
        Locale.CANADA_FRENCH };
    System.out.println("CURRENT LOCALE:");
    describeLocale(currentLocale);
    System.out.println("OTHER LOCALES:");
    for (int i = 0; i < locales.length; ++i)
      describeLocale(locales[i]);
  }

  static void describeLocale(Locale l) {
    System.out.println("Country: " + l.getDisplayCountry());
    System.out.println("Language: " + l.getDisplayLanguage());
    System.out.println();
  }
}
  
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)