-
Notifications
You must be signed in to change notification settings - Fork 0
Whenever we need to traverse through a Collection, we need to create an Iterator whose whole purpose is to iterate over and then we have business logic in a loop for each of the elements in the Collection. We might get ConcurrentModificationException if iterator is not used properly. Java 8 has introduced forEach method in java.lang.Iterable int…
vaibhavchugh09/Java_1.8feature_with_the_use_of_consumer_insteadof_iteratorlogic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
About
Whenever we need to traverse through a Collection, we need to create an Iterator whose whole purpose is to iterate over and then we have business logic in a loop for each of the elements in the Collection. We might get ConcurrentModificationException if iterator is not used properly. Java 8 has introduced forEach method in java.lang.Iterable int…
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published