I am trying to get all the locales from the JVM to populate a Country drop down. The first item is an empty not null object. It isn\'t null because I am using a TreeMap Coll
try
for (Locale locale : Locale.getAvailableLocales()) { System.out.println(locale.getLanguage() + " " + locale.getCountry()); }
you will see that some Locales have only language and no country
ms MY ar QA is IS fi FI pl en MT ...