Store Multiple Values for a Key using Apache Collections
n common programming we use maps to store key and value pair. They have one-to-one relationship.But, sometimes we need to use one-to-many relationship in order to store multiple values for a particular key.To achieve this we can use a hashmap to store a key and value will be a list.But,Here we'll discuss about Collections API given by Apache to do the trick.
Want to have your say? just login


Be first to show your opinion !!!