code: public java.util.ArrayList toList() {
  	int mySize = size();
  	Object[] theElements = elements;
  	java.util.ArrayList list = new java.util.ArrayList(mySize);
  	for (int i=0; i < mySize; i++) list.add(theElements[i]);
  	return list;
  }
  /**
  * Returns a string representation of the receiver, containing
  * the String representation of each element.
  */
  public String toString() {
  	return cern.colt.Arrays.toString(partFromTo(0, size()-1).elements());
  }
  /**
   * Trims the capacity of the receiver to be the receiver's current 
   * size. Releases any superfluos internal memory. An application can use this operation to minimize the 
   * storage of the receiver.
   */
  public void trimToSize() {
  	elements = cern.colt.Arrays.trimToCapacity(elements,size());
  }
  }
docs: Returns a <code>java.util.ArrayList</code> containing all the elements in the receiver.