Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Silly reminider of streams
Stream sum of even numbers includeing 2 up to including N. Go to the Java streams cheat sheet for more.
System.out.println(IntStream.rangeClosed(2,N).filter(x -> x%2==0).sum());
Enter to Rename, Shift+Enter to Preview
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content