Skip to content

Instantly share code, notes, and snippets.

@JurrianFahner
Created September 21, 2018 23:39
Show Gist options
  • Save JurrianFahner/1d19a3a42d09fd092594e5b0e477911a to your computer and use it in GitHub Desktop.
Save JurrianFahner/1d19a3a42d09fd092594e5b0e477911a to your computer and use it in GitHub Desktop.
Java 11 allows shebang
#!/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