Also Vectors are significantly slower than ArrayLists and LinkedLists.
Results of timed tests using different containers (from Thinking in Java):
Type | Get | Iteration | Insert | Remove |
array | 1430 | 3850 | na | na |
ArrayList | 3070 | 12200 | 500 | 46850 |
LinkedList | 16320 | 9110 | 110 | 60 |
Vector | 4890 | 16250 | 550 | 46850 |
[This message has been edited by Thomas Paul (edited May 08, 2001).]