mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
14 lines
345 B
Java
14 lines
345 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testAssignment(List<String> data) {
|
|
boolean found;
|
|
if (data.size() > 10) {
|
|
System.out.println("Big data");
|
|
}
|
|
found = data.stream().map(String::trim).anyMatch(trimmed -> !trimmed.isEmpty());
|
|
System.out.println(found);
|
|
}
|
|
} |