docs: public Object[] toArray() {
      Iterator<E> iter = iterator();
      ArrayList<Object> al = new ArrayList<Object>();
      while (iter.hasNext()) {
        al.add(iter.next());
      }
      return al.toArray();
    }