The following code prints all available locales:
Java Code:
		Locale[] locales = Locale.getAvailableLocales();
	    
	    for (int i=0; i<locales.length; i++) {
	        // Get the 2-letter language code
	        String language = locales[i].getLanguage();
	        System.out.print(language + " - " );
	    
	        // Get the 2-letter country code; may be equal to ""
	        String country = locales[i].getCountry();
	        System.out.print(country + " - ");
	    
	        // Get localized name suitable for display to the user
	        String locName = locales[i].getDisplayName();
	        System.out.println(locName);
	    }