You can define class. Then define arraylist which stores objects of that class
–
AddictNov 24 '12 at 5:55

1

Your example doesn't match the description of your problem (all the names are unique?). Having said that I would recommend taking a look at Guava's Multimap. It is capable of storing multiple values for the same key.
–
PerceptionNov 24 '12 at 5:58

Guava in general contain a lot of very convenient utilities, I think its worth checking out.

If you can't use an external library, you can simply (Like Matthew Cox said) mix a map and a List with Map<K, List<V>>. But that is a bit more inconvenient to work with since you have to initialise a list for every key.