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