Created
February 3, 2020 23:59
-
-
Save higaki/f693e31d61414c67a543518acfff21e5 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.Arrays; | |
public class ex3 { | |
public static void main(String args[]) { | |
var a = Arrays.asList(1, 2, 3, 5); | |
var result = a.stream().reduce(1, (s, i) -> s * i); | |
System.out.println(result); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment