Arraylist

What algo is use by arraylist when we remove and insert and element from anywhere?
[89 byte] By [krishnaksa] at [2007-11-27 4:45:11]
# 1
Use the source, Luke
dannyyatesa at 2007-7-12 9:57:29 > top of Java-index,Core,Core APIs...
# 2

From the API docs:

"public Object remove(int index)

Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices)".

http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html#remove(int)

prometheuzza at 2007-7-12 9:57:29 > top of Java-index,Core,Core APIs...