java - Extract String value from a TreeMap -
map 1 treemap , map2 hashmap
how extract value (string3[])
in string array treemap (map1)
in java. treemap
of type map1<string1,map2<string2,string3[]>>
i have used treemap.getkey().contains(string2)
key of string 2. need extract values of corresponding key i.e. string2
, store them in string array.
collection entryset = treemap.entryset(); // obtain iterator entries set iterator = entryset.iterator(); // iterate through treemap entries system.out.println("treemap entries : "); while(it.hasnext()) system.out.println(it.next()); }
Comments
Post a Comment