Getting a list of the available locales

import java.util.Locale;
 
public class Main
{
   public static void main(String[] args) {
      Locale[] locales = Locale.getAvailableLocales();
 
      printInColumn("DisplayName", 20);
      printInColumn("DisplayCountry", 15);
      printInColumn("DispLang", 11);
      printInColumn("ISO3L", 6);
      printInColumn("Lang", 5);
      printInColumn("ISO3C", 6);
      printInColumn("Variant", 6);
      printInColumn("DispVariant", 10);
      System.out.println();
      System.out.println();
 
      for (int i=0; i<locales.length; i++) {
         printInColumn(locales[i].getDisplayName(), 20);
         printInColumn(locales[i].getDisplayCountry(), 15);
         printInColumn(locales[i].getDisplayLanguage(), 11);
         printInColumn(locales[i].getISO3Language(), 6);
         printInColumn(locales[i].getLanguage(), 5);
         printInColumn(locales[i].getISO3Country(), 6);
         printInColumn(locales[i].getVariant(), 6);
         printInColumn(locales[i].getDisplayVariant(), 10);
         System.out.println();
      }
   }
 
   public static void printInColumn(String s, int col) {
      if (s.length() > col-2) s = s.substring(0, col-2);
      System.out.print(s);
      for (int i=s.length(); i<col; ++i)
         System.out.print(" ");
   }
}

outputs:

DisplayName         DisplayCountr  DispLang   ISO3  Lan  ISO3  Vari  DispVari  

English                            English    eng   en                         
English (United St  United States  English    eng   en   USA                   
Arabic                             Arabic     ara   ar                         
Arabic (United Ara  United Arab E  Arabic     ara   ar   ARE                   
Arabic (Bahrain)    Bahrain        Arabic     ara   ar   BHR                   
Arabic (Algeria)    Algeria        Arabic     ara   ar   DZA                   
Arabic (Egypt)      Egypt          Arabic     ara   ar   EGY                   
Arabic (Iraq)       Iraq           Arabic     ara   ar   IRQ                   
Arabic (Jordan)     Jordan         Arabic     ara   ar   JOR                   
Arabic (Kuwait)     Kuwait         Arabic     ara   ar   KWT                   
Arabic (Lebanon)    Lebanon        Arabic     ara   ar   LBN                   
Arabic (Libya)      Libya          Arabic     ara   ar   LBY                   
Arabic (Morocco)    Morocco        Arabic     ara   ar   MAR                   
Arabic (Oman)       Oman           Arabic     ara   ar   OMN                   
Arabic (Qatar)      Qatar          Arabic     ara   ar   QAT                   
Arabic (Saudi Arab  Saudi Arabia   Arabic     ara   ar   SAU                   
Arabic (Sudan)      Sudan          Arabic     ara   ar   SDN                   
Arabic (Syria)      Syria          Arabic     ara   ar   SYR                   
Arabic (Tunisia)    Tunisia        Arabic     ara   ar   TUN                   
Arabic (Yemen)      Yemen          Arabic     ara   ar   YEM                   
Byelorussian                       Byeloruss  bel   be                         
Byelorussian (Bela  Belarus        Byeloruss  bel   be   BLR                   
Bulgarian                          Bulgarian  bul   bg                         
Bulgarian (Bulgari  Bulgaria       Bulgarian  bul   bg   BGR                   
Catalan                            Catalan    cat   ca                         
Catalan (Spain)     Spain          Catalan    cat   ca   ESP                   
Czech                              Czech      ces   cs                         
Czech (Czech Repub  Czech Republi  Czech      ces   cs   CZE                   
Danish                             Danish     dan   da                         
Danish (Denmark)    Denmark        Danish     dan   da   DNK                   
German                             German     deu   de                         
German (Austria)    Austria        German     deu   de   AUT                   
German (Austria,Eu  Austria        German     deu   de   AUT   EURO  Euro      
German (Switzerlan  Switzerland    German     deu   de   CHE                   
German (Germany)    Germany        German     deu   de   DEU                   
German (Germany,Eu  Germany        German     deu   de   DEU   EURO  Euro      
German (Luxembourg  Luxembourg     German     deu   de   LUX                   
German (Luxembourg  Luxembourg     German     deu   de   LUX   EURO  Euro      
Greek                              Greek      ell   el                         
Greek (Greece)      Greece         Greek      ell   el   GRC                   
English (Australia  Australia      English    eng   en   AUS                   
English (Canada)    Canada         English    eng   en   CAN                   
English (United Ki  United Kingdo  English    eng   en   GBR                   
English (Ireland)   Ireland        English    eng   en   IRL                   
English (Ireland,E  Ireland        English    eng   en   IRL   EURO  Euro      
English (New Zeala  New Zealand    English    eng   en   NZL                   
English (South Afr  South Africa   English    eng   en   ZAF                   
Spanish                            Spanish    spa   es                         
Spanish (Bolivia)   Bolivia        Spanish    spa   es   BOL                   
Spanish (Argentina  Argentina      Spanish    spa   es   ARG                   
Spanish (Chile)     Chile          Spanish    spa   es   CHL                   
Spanish (Colombia)  Colombia       Spanish    spa   es   COL                   
Spanish (Costa Ric  Costa Rica     Spanish    spa   es   CRI                   
Spanish (Dominican  Dominican Rep  Spanish    spa   es   DOM                   
Spanish (Ecuador)   Ecuador        Spanish    spa   es   ECU                   
Spanish (Spain)     Spain          Spanish    spa   es   ESP                   
Spanish (Spain,Eur  Spain          Spanish    spa   es   ESP   EURO  Euro      
Spanish (Guatemala  Guatemala      Spanish    spa   es   GTM                   
Spanish (Honduras)  Honduras       Spanish    spa   es   HND                   
Spanish (Mexico)    Mexico         Spanish    spa   es   MEX                   
Spanish (Nicaragua  Nicaragua      Spanish    spa   es   NIC                   
Spanish (Panama)    Panama         Spanish    spa   es   PAN                   
Spanish (Peru)      Peru           Spanish    spa   es   PER                   
Spanish (Puerto Ri  Puerto Rico    Spanish    spa   es   PRI                   
Spanish (Paraguay)  Paraguay       Spanish    spa   es   PRY                   
Spanish (El Salvad  El Salvador    Spanish    spa   es   SLV                   
Spanish (Uruguay)   Uruguay        Spanish    spa   es   URY                   
Spanish (Venezuela  Venezuela      Spanish    spa   es   VEN                   
Estonian                           Estonian   est   et                         
Estonian (Estonia)  Estonia        Estonian   est   et   EST                   
Finnish                            Finnish    fin   fi                         
Finnish (Finland)   Finland        Finnish    fin   fi   FIN                   
Finnish (Finland,E  Finland        Finnish    fin   fi   FIN   EURO  Euro      
French                             French     fra   fr                         
French (Belgium)    Belgium        French     fra   fr   BEL                   
French (Belgium,Eu  Belgium        French     fra   fr   BEL   EURO  Euro      
French (Canada)     Canada         French     fra   fr   CAN                   
French (Switzerlan  Switzerland    French     fra   fr   CHE                   
French (France)     France         French     fra   fr   FRA                   
French (France,Eur  France         French     fra   fr   FRA   EURO  Euro      
French (Luxembourg  Luxembourg     French     fra   fr   LUX                   
French (Luxembourg  Luxembourg     French     fra   fr   LUX   EURO  Euro      
Croatian                           Croatian   hrv   hr                         
Croatian (Croatia)  Croatia        Croatian   hrv   hr   HRV                   
Hungarian                          Hungarian  hun   hu                         
Hungarian (Hungary  Hungary        Hungarian  hun   hu   HUN                   
Icelandic                          Icelandic  isl   is                         
Icelandic (Iceland  Iceland        Icelandic  isl   is   ISL                   
Italian                            Italian    ita   it                         
Italian (Switzerla  Switzerland    Italian    ita   it   CHE                   
Italian (Italy)     Italy          Italian    ita   it   ITA                   
Italian (Italy,Eur  Italy          Italian    ita   it   ITA   EURO  Euro      
Hebrew                             Hebrew     heb   iw                         
Hebrew (Israel)     Israel         Hebrew     heb   iw   ISR                   
Japanese                           Japanese   jpn   ja                         
Japanese (Japan)    Japan          Japanese   jpn   ja   JPN                   
Korean                             Korean     kor   ko                         
Korean (South Kore  South Korea    Korean     kor   ko   KOR                   
Lithuanian                         Lithuania  lit   lt                         
Lithuanian (Lithua  Lithuania      Lithuania  lit   lt   LTU                   
Latvian (Lettish)                  Latvian (  lav   lv                         
Latvian (Lettish)   Latvia         Latvian (  lav   lv   LVA                   
Macedonian                         Macedonia  mkd   mk                         
Macedonian (Macedo  Macedonia      Macedonia  mkd   mk   MKD                   
Dutch                              Dutch      nld   nl                         
Dutch (Belgium)     Belgium        Dutch      nld   nl   BEL                   
Dutch (Belgium,Eur  Belgium        Dutch      nld   nl   BEL   EURO  Euro      
Dutch (Netherlands  Netherlands    Dutch      nld   nl   NLD                   
Dutch (Netherlands  Netherlands    Dutch      nld   nl   NLD   EURO  Euro      
Norwegian                          Norwegian  nor   no                         
Norwegian (Norway)  Norway         Norwegian  nor   no   NOR                   
Norwegian (Norway,  Norway         Norwegian  nor   no   NOR   NY    Nynorsk   
Polish                             Polish     pol   pl                         
Polish (Poland)     Poland         Polish     pol   pl   POL                   
Portuguese                         Portugues  por   pt                         
Portuguese (Brazil  Brazil         Portugues  por   pt   BRA                   
Portuguese (Portug  Portugal       Portugues  por   pt   PRT                   
Portuguese (Portug  Portugal       Portugues  por   pt   PRT   EURO  Euro      
Romanian                           Romanian   ron   ro                         
Romanian (Romania)  Romania        Romanian   ron   ro   ROM                   
Russian                            Russian    rus   ru                         
Russian (Russia)    Russia         Russian    rus   ru   RUS                   
Serbo-Croatian                     Serbo-Cro  srp   sh                         
Serbo-Croatian (Yu  Yugoslavia     Serbo-Cro  srp   sh   YUG                   
Slovak                             Slovak     slk   sk                         
Slovak (Slovakia)   Slovakia       Slovak     slk   sk   SVK                   
Slovenian                          Slovenian  slv   sl                         
Slovenian (Sloveni  Slovenia       Slovenian  slv   sl   SVN                   
Albanian                           Albanian   sqi   sq                         
Albanian (Albania)  Albania        Albanian   sqi   sq   ALB                   
Serbian                            Serbian    srp   sr                         
Swedish                            Swedish    swe   sv                         
Serbian (Yugoslavi  Yugoslavia     Serbian    srp   sr   YUG                   
Swedish (Sweden)    Sweden         Swedish    swe   sv   SWE                   
Thai                               Thai       tha   th                         
Thai (Thailand)     Thailand       Thai       tha   th   THA                   
Turkish                            Turkish    tur   tr                         
Turkish (Turkey)    Turkey         Turkish    tur   tr   TUR                   
Ukrainian                          Ukrainian  ukr   uk                         
Ukrainian (Ukraine  Ukraine        Ukrainian  ukr   uk   UKR                   
Chinese                            Chinese    zho   zh                         
Chinese (China)     China          Chinese    zho   zh   CHN                   
Chinese (Hong Kong  Hong Kong      Chinese    zho   zh   HKG                   
Chinese (Taiwan)    Taiwan         Chinese    zho   zh   TWN