getDisplayLanguage returns "en" not "English"
I'm having problems displaying details of locales. The following example should, I've been told, display "Language: English" and "Country: England" but it displays "Language: en" and "Country: GB". The default locale is Locale.UK (ie: "en_GB") and the output is the same if I change it to Locale.US or Locale.FRANCE
The code I'm using is as follows:
Any pointers to what's wrong would be much appreciated as this is beginning to drive me up the wall. What have I missed?
public class TestLocale
static public void main(String args)
Locale myLocale = new Locale("en", "GB");
System.out.println("Language: " + myLocale.getDisplayLanguage());
System.out.println("Country: " + myLocale.getDisplayCountry());
I've copied and pasted other examples from various sources into a text editor, all of them show the language and country in the 2-letter form.