Original Post
Say I have a HashMap with names for the keys and numbers for the values. Input the key and you get the associated number returned. But if I don''t know the name, but instead the number, I would have to have another HashMap with the keys and values reversed. My question is, is there a similar object that could have the same basic functions as a HashMap, but could take in a value and return the key as well as still returning a value for a key? Or am I stuck with two seperate HashMap objects?