mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
9 lines
274 B
Java
9 lines
274 B
Java
// "Replace with sum()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testPrimitiveMap(List<String> data) {
|
|
int sum = data.stream().filter(str -> str.startsWith("xyz")).mapToInt(String::length).filter(len -> len > 10).map(len -> len * 2).sum();
|
|
}
|
|
} |