This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collections which iterate bi-directionally?

 
yamini nadella
Ranch Hand
Posts: 257
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read ArrayList iterate bi-directionally. what other collections iterate bi-directionally?
 
Eric Pramono
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 257
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I am not sure, but it is good to know.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic