RE: [JAVA] A Guide to Using Vectors 11-18-2012, 03:10 PM
#2
The real value here lies in the example code, because the information about the methods you get by reading the API (which every programmer should do).
Some additional information: Most of the time the ArrayList will be more suitable, unless you need synchronization. Expecially beginners won't deal with threads. The ArrayList is almost the same, just that it is not synchronized (therefor faster) and the ArrayList increases its size by 50%, whereas the Vectors default doubles its size when the underlying array is full.
Some additional information: Most of the time the ArrayList will be more suitable, unless you need synchronization. Expecially beginners won't deal with threads. The ArrayList is almost the same, just that it is not synchronized (therefor faster) and the ArrayList increases its size by 50%, whereas the Vectors default doubles its size when the underlying array is full.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
Expressed feelings are just an attempt to simulate humans.
![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)