Posted By:
padmakar_kadem
Posted On:
Thursday, September 13, 2007 05:55 AM
thank u for given the reply
There is a small mistake in the code .the code is like this
//list of arrays added in the hashmap
Set st=hm.keySet();
Iterator it =st.iterator();
while(it.hasNext())
{
String str = (String)(it.next());
if(hm.containsKey("usd")){
ArrayList array = (ArrayList) hm.get(str);
for(int i=0;i
{
System.out.println("a1 values" + " - " + array.get(i));
}
}
i am getting the error(class cast exception) in this line: ArrayList array = (ArrayList) hm.get(str);