code: public static String[] toStringArray(ArrayList<String> src) {
      String[] ret = new String[src.size()];
      return src.toArray(ret);
    }
docs: Parses {@code ArrayList<String>} into {@code String[]}.
  
  @param src is the ArrayList of strings
  @return an array of strings