How can I go through an Iterator mulitple times?
Location: http://www.jguru.com/faq/view.jsp?EID=532217 Created: Oct 28, 2001 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Eric Tetz (http://www.jguru.com/guru/viewbio.jsp?EID=409815 There is no direct support for this. You’ll need to create your own caching mechanism. For instance, as you go through the Iterator the first time, add the elements to a LinkedList. Then, you can just get an Iterator from the LinkedList for the second pass through.