collections - I have a nested map in Java, not getting how to put data in that map -


i using nested map map>>> mapobj = new hashmap>>>

i not getting how put data in map. appreciated.

all referenced. can directly navigate object , call put on it. e.g-

map<string, map<string, string>> student = new hashmap<>(); student.put("studentobject1", new hashmap<>());//initialize child object once. student.get("studentobject1").put("name", "aarti");//get reference of child object , put key value in it. 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -