mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
18 lines
381 B
Java
18 lines
381 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testPrimitiveMap(List<String> data) {
|
|
List<Integer> list = new ArrayList<>();
|
|
for(String str : d<caret>ata) {
|
|
if(str.startsWith("xyz")) {
|
|
int len = str.length();
|
|
if(len > 10) {
|
|
list.add(len);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |