Generator (computer programming): Difference between revisions

Content deleted Content added
Revert to revision 785714360 dated 2017-06-15 00:50:22 by LilHelpa using popups
Line 317:
</syntaxhighlight>
 
===javaJava===
Java has had a standard interface for implementing iterators since its early days, and since Java 5, the "foreach" construction makes it easy to loop over objects that provide the <tt>java.lang.Iterable</tt> interface. (The [[Java collections framework]] and other collections frameworks, typically provide iterators for all collections.)