Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
How to use Iterator in HashMap in Java Program
Iterators in Java are core of Collection package. They provide most important traversing functionality around objects stored in Collections. No matterhttp://javarevisited.blogspot.com/2011/10/java-iterator-tutorial-example-list.html
Total Hits: 4566
Total Votes: 41 votes
Average Rating: 2.66 out of 5
Category: JAVA/Collections
Description:
Iterators in Java are core of Collection package. They provide most important traversing functionality around objects stored in Collections.No matter whether your objects are stored inside ArrayList, LinkedList, HashMap, HashSet or Vector , you can effectively use Iterator to navigate inside collection and same time remove objects from Collection safely. There are two kinds of Iterator in Java fail-safe and fail-fast, fail-safe iterator handles failure scenario elegantly while fail-fast iterator throws ConcurrentModification Exception. This article gives a nice overview of Java Iterator and ListIterator and suggest how can you use both iterators based on scenarios and requirement.
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 17.07% |
7 |
![]() ![]() |
![]() ![]() 14.63% |
6 |
![]() ![]() ![]() |
![]() ![]() 17.07% |
7 |
![]() ![]() ![]() ![]() |
![]() ![]() 14.63% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 21.95% |
9 |




17.07%

14.63%

17.07%

14.63%

21.95%