mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
8 lines
230 B
Java
8 lines
230 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).allMatch(s -> s.startsWith("xyz"));
|
|
}
|
|
} |