Possible Duplicate:
Rule of thumb for choosing an implementation of a Java Collection?
My situation is this:
- I have a collection of objects that I need to hold and every now and then iterate through
- The size of the collection is dynamic
- The iteration should access each element
- The collection does not need to be sorted
Creating or updating the collection has no time constraints but I'd like to iterate through the collection as fast as possible.
What would be the best Collection to use (or would you perhaps suggest using an array?)