Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Iterator vs ArrayList.get(int index)

807605Jun 17 2007 — edited Jun 17 2007
I am wondering what's the difference between accessing objects from an ArrayList using iterator() and get(int index). Is there any advantages from using either the iterator() method or the get(int index) method?

Thanks

Message was edited by:
Plee
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2007
Added on Jun 17 2007
3 comments
429 views