HashMap that holds ArrayLists + one simple example

Could u please give one example for below question HashMap that holds ArrayLists + one simple exampleThanks sandeep
[143 byte] By [sandeep7a] at [2007-11-26 16:30:40]
# 1

Hope the code snippet below might be of some help....

HashMap<String,ArrayList><String>> hm = new HashMap<String,ArrayList><String>> ();

ArrayList<String> al = new ArrayList<String>();

al.add("java");

al.add("solaris");

al.add("sun");

al.add("SDN");

hm.put("ArrayList",al);

REGARDS,

RaHuL

RahulSharnaa at 2007-7-8 22:55:06 > top of Java-index,Java Essentials,New To Java...
# 2
Hi thanks for ur helphm.put("ArrayList",al);can u explain about this statement and how to retrive the values from the HashMap of ArrayList Thanks
sandeep7a at 2007-7-8 22:55:06 > top of Java-index,Java Essentials,New To Java...