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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.