Morten Wennevik <Mo************@hotmail.com> wrote:
An ArrayList is a linked list that can grow and shrink in size when needed.
No, an ArrayList is *not* a linked list. It's a list backed by an
array. It can grow and shrink in size when needed - if it exceeds the
bounds of the internal array, a new array is created and the contents
of the old one copied. That is all hidden from the client, however.
<snip stuff I agree with>
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too