i am reading data from a text file and want to store HashMap in another HashMap..
HashMap>
how to
Creating two Simple Hashmaps: InnerMap and OuterMap
HashMap> outerMap = new HashMap>();
HashMap innerMap = new HashMap();
Populating the HashMaps
innerMap.put("InnerKey", "InnerValue");
outerMap.put("OuterKey", innerMap);
Retreiving values from HashMaps
String value = ((HashMap)outerMap.get("OuterKey")).get("InnerKey").toString();
System.out.println("Retreived value is : " + value);