i would like to make some sort of a structure where i can have duplicate keys but the values differ. im using java and the hashmap is nice but doesnt allow for duplicate keys, i imported the google guava libraries for multimaps but cant seem to make it work any better ideas or suggestions ? i want to save multple objects then search for them using a key but some objects will have the same key.
looking for a java dictionary
this is an example of what i want to insert
NP|DET|NOM|
NP|PROPERNOUN|
NOM|NOUN|NOUN|
S|NP|VP|
VP|VERB|NP|
VP|VERB|PP|
the far left value being the key and the right terminal being the values