mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
17 lines
300 B
Java
17 lines
300 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public boolean testAnyMatch(List<String> data) {
|
|
int x = 10;
|
|
for(String str : da<caret>ta) {
|
|
String trimmed = str.trim();
|
|
if(trimmed.isEmpty()) {
|
|
x *= 2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
} |