code: public static List<Locale> getLocales(List<String> localeNames) {
  
          List<Locale> result = new ArrayList<Locale>(localeNames.size());
          for (int i = 0; i < localeNames.size(); i++) {
              result.add(getLocale(localeNames.get(i).toString().trim()));
          }
          return result;
      }
docs: Returns a List of locales from an array of locale names.<p>
  
  @param localeNames array of locale names
  @return a List of locales derived from the given locale names