mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
10 lines
266 B
Java
10 lines
266 B
Java
// "Replace with allMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
boolean find(List<String> data, boolean other, boolean third) {
|
|
return data.stream().map(String::trim).allMatch(trimmed -> trimmed.startsWith("xyz")) && (other || third);
|
|
}
|
|
}
|