public ObjectArrayList partFromTo(int from, int to) {
	if (size==0) return new ObjectArrayList(0);

	checkRangeFromTo(from, to, size);

	Object[] part = new Object[to-from+1];
	System.arraycopy(elements, from, part, 0, to-from+1);
	return new ObjectArrayList(part);
}
public ObjectArrayList partFromTo ( int from , int to ) { if ( size == 0 ) return new ObjectArrayList ( 0 ) ; checkRangeFromTo ( from , to , size ) ; Object [ ] part = new Object [ to - from + 1 ] ; System . arraycopy ( elements , from , part , 0 , to - from + 1 ) ; return new ObjectArrayList ( part ) ; }
Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>, inclusive.
@param from the index of the first element (inclusive).
@param to the index of the last element (inclusive).
@return a new list
@exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>).