Locale[] locales = { new Locale("en", "US"), new Locale("fr", "FR"), new Locale("th", "TH"), new Locale("es", "MX"), new Locale("ja", "JP") }; System.out. System.out.printf("%-10s/t%s/n", "--------", "--------------"); for (Locale l : locales) { System.out.printf("%-10s/t%s/n", l.toString(), l.getDisplayName()); }