Choose by the contract and dominant operation: order, uniqueness, lookup, or queueing.
Strong collection choices start from what the code needs most often. If order matters, think `List`. If uniqueness or membership dominates, think `Set`. If direct lookup by key dominates, think `Map`.
Additional Notes
How should you choose a Java collection?
Track: Java
Topic: Collections
Focus: Choosing the Right Collection
Topics:Choosing the Right CollectionCollectionsJava