code: public static String[] toArray(Collection<String> coll) {
          String[] ar;
  
          ar = new String[coll.size()];
          coll.toArray(ar);
          return ar;
      }
docs: Turns a list of Strings into an array.
  
  @param coll   collection of Strings
  
  @return never null