This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Vector supports iterators? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Vector supports iterators?" Watch "Vector supports iterators?" New topic

Vector supports iterators?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
Whether Vector supports iterators?
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
In Java 1.4, Vector extends AbstractList and inherits methods iterator and listIterator
Lionel Badiou
Ranch Hand

Joined: Jan 06, 2005
Posts: 140

The Vector class implements 'List' interface which among other things, declare methods for iterators managment. So the answer to your question is simply : yes.

You may have found the answer in Vector's Javadoc.

Best regards,

Lionel Badiou
CodeFutures Software
I agree. Here's the link:
subject: Vector supports iterators?
Similar Threads
Collections API
fail-fast iterators
Collections - A question on iterator.
Iterator are fail safe while Enumeration is not
Vector Images