File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Vector Images
Collections - A question on iterator.
Iterator are fail safe while Enumeration is not