[Bluej-discuss] Deconstruction of Iterator

JD dnaltrop at gmail.com
Sun Jun 18 16:41:21 BST 2006


I'm in the weeds here I know.....But I just need to understand this for me
to move on.

In Chapter 4 the Iterator class is introduced.  In the following code we
instantiate an Iterator object with the following line:

Iterator it = notes.iterator();

Text from book: "In this code fragment, we first use the iterator method of
the ArrayList Class to obtain an iterator object."

When I look at the javadoc for ArrayList, I don't see the iterator method
listed.  Can someone clear this up for me?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060618/8572f698/attachment.html


More information about the bluej-discuss mailing list