O(n)
The
size,isEmpty,get,set,iterator, andlistIteratoroperations run in constant time. Theaddoperation runs in amortized constant time, that is, adding n elements requires O(n) time. All of the other operations run in linear time (roughly speaking). The constant factor is low compared to that for the LinkedList implementation.
http://download.oracle.com/javase/6/docs/api/java/util/ArrayList.html