mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
16 lines
281 B
Java
16 lines
281 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
boolean find(List<String> data) {
|
|
for(String e : da<caret>ta) {
|
|
String trimmed = e.trim();
|
|
if(trimmed.startsWith("xyz")) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|