Results 1 to 4 of 4
Thread: iterator
- 09-02-2008, 07:10 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 16
- Rep Power
- 0
- 09-02-2008, 07:33 PM #2
Could you copy and paste the the API doc for those two classes as a starting point?
- 09-02-2008, 09:47 PM #3
Senior Member
- Join Date
- Aug 2008
- Posts
- 384
- Rep Power
- 5
Enumeration: An object that implements the Enumeration interface generates a series of elements, one at a time. Successive calls to the nextElement method return successive elements of the series.I suggest you use an Iterator.Iterator: An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework. Iterators differ from enumerations in two ways:
Iterators allow the caller to remove elements from the underlying collection during the iteration with well-defined semantics.
Method names have been improved.
There you go.I die a little on the inside...
Every time I get shot.
- 09-23-2008, 01:32 PM #4
Member
- Join Date
- Aug 2008
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
Implementing Iterator
By Harb in forum New To JavaReplies: 13Last Post: 11-21-2009, 07:25 PM -
iterator issues
By orchid in forum New To JavaReplies: 2Last Post: 08-12-2008, 01:43 PM -
Iterator
By eva in forum New To JavaReplies: 0Last Post: 01-31-2008, 02:07 PM -
using Iterator with Vector
By Java Tip in forum Java TipReplies: 0Last Post: 11-13-2007, 10:52 AM -
How to use an Iterator in java
By lenny in forum New To JavaReplies: 2Last Post: 07-25-2007, 07:46 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks