mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
8 lines
231 B
Java
8 lines
231 B
Java
import java.util.stream.Stream;
|
|
|
|
// "Fold expression into Stream chain" "true-preview"
|
|
class Test {
|
|
boolean foo(String a, String b, String c, String d) {
|
|
return Stream.of(a, b, c, d).noneMatch(s -> s.startsWith("xyz"));
|
|
}
|
|
} |