code: public double get(int index) {
  	// overridden for performance only.
  	if (index >= size || index < 0)
  		throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size);
  	return elements[index];
  }
docs: Returns the element at the specified position in the receiver.
  
  @param index index of element to return.
  @exception IndexOutOfBoundsException index is out of range (index
  &lt; 0 || index &gt;= size()).