mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
18 lines
381 B
Java
18 lines
381 B
Java
// "Replace with findFirst()" "false"
|
|
|
|
import java.util.List;
|
|
|
|
// Not supported as OptionalInt lacks mapping method
|
|
public class Main {
|
|
public int testPrimitiveMap(List<String> data) {
|
|
for(String str : dat<caret>a) {
|
|
if(str.startsWith("xyz")) {
|
|
int len = str.length();
|
|
if(len > 10) {
|
|
return len * 2;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
} |