Skip to content

Instantly share code, notes, and snippets.

@panphora panphora/grayfox.java
Last active Sep 19, 2019

Embed
What would you like to do?
import java.util.stream.IntStream;
class Main {
public static void main(String[] args) {
System.out.println(IntStream.range(1,5).map(n -> n*2).reduce(1, (a,b)->a+b));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.