Last active
September 19, 2019 18:01
-
-
Save panphora/46279929015f82c914c7d8c3f9c40ba2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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