Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

advantages of iterator in java

You can remove objects using an iterator, but you can't do it with a foreach loop
Sometimes is useful to pass an iterator to a function (specially recursive ones)
 
PREVIOUS NEXT
Tagged: #advantages #iterator #java
ADD COMMENT
Topic
Name
3+8 =