Created
June 28, 2018 11:42
-
-
Save metebalci/8491a5ec04d7d614a99a2e51c6b6b85e to your computer and use it in GitHub Desktop.
JEP323.java
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 JEP323 { | |
public static void main(String[] args) { | |
var xs = new int[]{3, 2, 6, 4, 8, 9}; | |
int x = Arrays.stream(xs).filter((var a) -> a < 5).sum(); | |
System.out.println(x); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment