komlaaa
asked on
HashMap
Hi,
How to declare and use this contructor: HashMap(Map m)
How to declare and use this contructor: HashMap(Map m)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>HashMap map = new HashMap(existingMap);
how can i add another HashMap to map?
how can i add another HashMap to map?
HashMap map = new HashMap();
map.put("map", mapToAdd);
map.put("map", mapToAdd);
ASKER
i should know this
ASKER
thanks and sorry for asking such questions
s'ok :)
ASKER
based on this: HashMap.put(Object, Object), I am trying to do something like: HashMap.put("map", new HahMap() )
but it is not letting me.