Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
java:java8 [25.05.2016 @ 13:40]
Christophe Frattino [Intermediate operations]
java:java8 [25.05.2016 @ 13:42] (current)
Christophe Frattino [Intermediate operations]
Line 139: Line 139:
     .forEach(b -> System.out.println(b.name));​     .forEach(b -> System.out.println(b.name));​
 </​code>​ </​code>​
-=== Reduce === 
-<code java> 
-StringBuilder result = stream.reduce(new StringBuilder(),​ (sb, s) -> sb.append(s))...;​ 
-</​code>​ 
- 
 ==== Terminal operations ==== ==== Terminal operations ====
 Once one of those operations is called, you cannot call any other operation! See the next sub-chapter to know how to deal with this. Once one of those operations is called, you cannot call any other operation! See the next sub-chapter to know how to deal with this.
Print/export