I have a HashMap in Java, the contents of which (as you all probably know) can be accessed by
HashMap.get(\"keyname\");
If a have a HashMap
Yes.
See:
public static void main(String args[]) { HashMap> map = new HashMap>(); map.put("key", new HashMap()); map.get("key").put("key2", "val2"); System.out.println(map.get("key").get("key2")); }