Generator (computer programming): Difference between revisions

Content deleted Content added
C: fixed grammar error
Claptsap (talk | contribs)
Java: Fixed grammar
Tags: Mobile edit Mobile app edit Android app edit
Line 394:
</syntaxhighlight>
 
Also an infinite Fibonacci sequence could also be written using '''javaJava 8''' Stream interface:
<syntaxhighlight lang="java">
Stream.generate(new Supplier<Integer>() {