Created
September 21, 2018 23:39
-
-
Save JurrianFahner/1d19a3a42d09fd092594e5b0e477911a to your computer and use it in GitHub Desktop.
Java 11 allows shebang
This file contains hidden or 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
#!/usr/bin/env -S java --source 11 | |
import java.util.stream.Stream; | |
import java.util.function.Predicate; | |
public class Test { | |
public static void main(String[] args) { | |
Predicate<Integer> bla = (a) -> a > 10 ; | |
Stream.of(1, 100, 3).filter(bla).forEach(System.out::println); | |
System.out.println("TEST"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment