Map collection
A Map cares about unique identifiers. You map a unique key (the ID) to a specific value. You’re probably quite familiar with Maps since many languages suppor...
A Map cares about unique identifiers. You map a unique key (the ID) to a specific value. You’re probably quite familiar with Maps since many languages suppor...
Now let us say that we want to create a list that holds unique objects so what should we do? Should we use the normal list (ArrayList or LinkedList) to keep ...
A List extends Collection interface but it also cares about the index. The one thing that List has that non-lists don’t have is a set of methods related to t...
When we are having a collection of objects we needed a mechanism to traverse through it. But no two implementations are going to be the same when we are impl...
A collection allows a group of objects to be treated as a single unit. Arbitrary objects can be stored, retrieved, and manipulated as elements of collections.