Link to home
Start Free TrialLog in
Avatar of komlaaa
komlaaa

asked on

HashMap

Hi,

How to declare and use this contructor: HashMap(Map m)
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia 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
Avatar of komlaaa
komlaaa

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.
Avatar of komlaaa

ASKER

>>HashMap map = new HashMap(existingMap);
how can i add another HashMap to map?

HashMap map = new HashMap();
map.put("map", mapToAdd);
Avatar of komlaaa

ASKER

i should know this
Avatar of komlaaa

ASKER

thanks and sorry for asking such questions
s'ok :)