-2

Possible Duplicate:
Rule of thumb for choosing an implementation of a Java Collection?

I am looking for a 'Summary' list of all the Java collections detailing the pros and cons of each. I am particularly interested in things like

  • Which provide faster iteration
  • Which provide faster search
  • Which provide slower iteration
  • Which provide faster insertion or removal

I have seen some sites by searching on Google but i am looking for just a summary preferable in table format.

Thanks in advance.

Community
  • 1
  • 1
ziggy
  • 15,677
  • 67
  • 194
  • 287

1 Answers1

3

Take a look at the Collections tutorial, particularly the section on implementations, which includes (in subsections) a discussion of performance characteristics for the various predefined classes. The collections framework is so large, I think, that it would be difficult to summarize everything in a single table.

Ted Hopp
  • 232,168
  • 48
  • 399
  • 521