devxlogo

Get All Locales Supported by the Java Runtime

Get All Locales Supported by the Java Runtime

This code segment returns all the locales supported by the Java Runtime:

// ListSupportedLocales.javaimport java.util.*;// other code to go here.Locale[] localeList = Locale.getAvailableLocales( );    for (int i=0; i

devx-admin

Share the Post: