mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 12:20:55 +07:00
8 lines
202 B
Java
8 lines
202 B
Java
import java.util.stream.IntStream;
|
|
|
|
// "Fold expression into Stream chain" "true-preview"
|
|
class Test {
|
|
boolean foo(double[] arr) {
|
|
return IntStream.of(1, 3, 7, 9).allMatch(i -> arr[i] >= 5);
|
|
}
|
|
} |