ArrayList of HashMaps
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, December 18, 2003 07:30 AM



I have ArrayList of 2 dimensional HashMaps.
I want to access second HashMap element in a loop.
How?



			
Al = [[{a00=1, a01=false, a03=2, a04=Y}, {a10=Y, a11=D2,a12=12}], [{....}{}}]..]


i.e I want to access HashMap elemnets like :
{a10=Y, a11=D2,a12=12}

Re: ArrayList of HashMaps

Posted By:   Anonymous  
Posted On:   Thursday, December 18, 2003 08:01 AM


ArrayList a2 = null;


for (int i = 1; i < Al.size(); i++) {

al = (ArrayList) Al.get(i);


for (int j = 1; j < al.size();j++) {

mRulesData = (Map) al.get(j);
//and proceeed

}
}




Is the way I got it.!!

About | Sitemap | Contact