Two Laptop Bag*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collections which iterate bi-directionally? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Collections which iterate bi-directionally?" Watch "Collections which iterate bi-directionally?" New topic
Author

Collections which iterate bi-directionally?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
I read ArrayList iterate bi-directionally. what other collections iterate bi-directionally?
Eric Pramono
Ranch Hand

Joined: Jul 09, 2001
Posts: 74
Based on the API, I think that ArrayList, LinkedList & Vector have the listIterator() method which allows them to return a ListIterator representation of the collection data.
The ListIterator interface methods are the ones that actually allow the data to read in reversed order (using previous() method).
BTW, is this a part of the 1.4 exam?
- eric
yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
Thank you. I am not sure, but it is good to know.
 
 
subject: Collections which iterate bi-directionally?
 
Similar Threads
Searching a record in resultset
ArrayList can be iterated bidirectionaly!
Bidirectional Maps?
can i use the resultset simultaneously?
Sun's New Sample 1.4 Exam