mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
13 lines
251 B
Java
13 lines
251 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public boolean testAnyMatch(List<String> data) {
|
|
int x = 10;
|
|
if (data.stream().map(String::trim).anyMatch(String::isEmpty)) {
|
|
x *= 2;
|
|
}
|
|
}
|
|
|
|
} |