Guest User

Untitled

a guest
Mar 8th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public class StreamSum {
  2. static final int SUM = IntStream.range(0, 100).parallel().reduce((n, m) -> n + m).getAsInt();
  3.  
  4. public static void main(String[] args) {
  5. System.out.println(SUM);
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment