Thread: ArrayLists
View Single Post
Old Nov 13th, 2006, 8:45 AM   #11
BungalowBill
Programmer
 
Join Date: Dec 2005
Posts: 40
Rep Power: 0 BungalowBill is on a distinguished road
If i had an array called List and was able to iterate through it, pulling out each element like this:

for(i = 0 ; i< List.size()-4 ; i++){
 
 System.out.println(seqList.get(i));
}

Is there any way to use this piece of code provided by titaniumdecoy:

double x = map.get('A')[0];

but like this:

double x = map.get(seqList.get(i))[0];

So i don't have to check what value 'i' is before i assign it a value from the map?

^^^Thats giving me errors.
BungalowBill is offline   Reply With Quote