mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
17 lines
322 B
Java
17 lines
322 B
Java
// "Replace with sum()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testPrimitiveMap(List<String> data) {
|
|
long sum = 0;
|
|
for(String str : da<caret>ta) {
|
|
if(str.startsWith("xyz")) {
|
|
int len = str.length();
|
|
if(len > 10) {
|
|
sum += len;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |