File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes LinkedList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "LinkedList" Watch "LinkedList" New topic


Simon Xu
Ranch Hand

Joined: Aug 16, 2000
Posts: 235
The LinkedList class in util package does not have a next () or similar methods, how can I go through all the Nodes of the linkedlist?
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Use the iterator() method to get an Iterator.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: LinkedList
It's not a secret anymore!