text: public virtual object[] toArray(){int size_1 = size();int index = 0;java.util.Iterator<E> it = iterator();object[] array = new object[size_1];while (index < size_1){array[index++] = it.next();}return array;}