Why I cant iterate through this list
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shawn_Sandy
Posted On:   Thursday, May 16, 2002 08:36 AM

This piece of code only returns the last element of the list, the same number of times as there are elements in the list. Any ideas?

TIA

Enumeration e = list.elements();
while ( e.hasMoreElements() ) {
Round round = (Round)e.nextElement();
System.out.println("HERE IS THE SCORE ==> " + round.getScore());
System.out.println("
");
}
}

Re: Why I cant iterate through this list

Posted By:   Shawn_Sandy  
Posted On:   Thursday, May 16, 2002 12:52 PM

never mind, answered my own question.
About | Sitemap | Contact