mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
11 lines
271 B
Java
11 lines
271 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testAssignment(List<String> data) {
|
|
if (data.stream().map(String::trim).anyMatch(trimmed -> !trimmed.isEmpty())) {
|
|
System.out.println("Found!!!");
|
|
}
|
|
}
|
|
} |