Skip to content

Instantly share code, notes, and snippets.

@metebalci
Created June 28, 2018 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metebalci/8491a5ec04d7d614a99a2e51c6b6b85e to your computer and use it in GitHub Desktop.
Save metebalci/8491a5ec04d7d614a99a2e51c6b6b85e to your computer and use it in GitHub Desktop.
JEP323.java
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