code: public static String[] arrayFromStringList(List<String> strings) {
  
          String[] result = new String[strings.size()];
          for (int i = 0; i < strings.size(); i++) {
              result[i] = strings.get(i);
          }
          return result;
      }
docs: Converts a list of strings to an array.<p>
  
  @param strings the string list
  
  @return the array of strings