Learned about this just now and thought ill blog about it for any one else who might find it useful. We normally use the default iterator to traverse through any collection. But have you ever needed to traverse backwards and forward? Or maybe add an element to a location while traversing. Then the answer is to use the ListIterator interaface while allows you to carry out such tasks.
Check out the javadoc for more info.
No comments:
Post a Comment