Link to home
Start Free TrialLog in
Avatar of allelopath
allelopath

asked on

Map/HashMap

Suppose I have a Map:
Map<String, MyClass> myMap = new HashMap<String, MyClass>();

I know there is only 1 key/value pair in it. I don't know or care what the key is, but I want to get the value. What's the best way to do this?


ASKER CERTIFIED SOLUTION
Avatar of aciuica
aciuica
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial