View Single Post
  #1 (permalink)  
Old 07-31-2007, 05:45 AM
lenny lenny is offline
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
Please help me with LinkedList in Java
Hi, So I've got a LinkedList that I need to traverse through. Right now I'm going through it the same way that I would for a regular array, which works, it's just very slow. That is:
Code:
for (int i = 0; i < list.size(); i++) { code; }
Can anyone help me with the correct way to go through the entire list?
Thanks
Reply With Quote
Sponsored Links