public synchronized Object[] toArray(Object[] array)
public synchronized Object[] toArray()
  public synchronized Object[] toArray(Object[] array)  {    if (array.length < elementCount)      array = (Object[]) Array.newInstance(array.getClass().getComponentType(),         				   elementCount);    else if (array.length > elementCount)      array[elementCount] = null;    System.arraycopy(elementData, 0, array, 0, elementCount);    return array;  }