Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Nov 13th, 2006, 9: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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC