mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
10 lines
299 B
Java
10 lines
299 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public int testPrimitiveMap(List<String> data) {
|
|
/*ten*/
|
|
return data.stream().filter(str -> str.startsWith("xyz")).mapToInt(String::length).filter(len -> len /*bigger*/ > 10).findFirst().orElse(0);
|
|
}
|
|
} |