mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
10 lines
253 B
Java
10 lines
253 B
Java
// "Replace with collect" "true"
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Sample {
|
|
public void some(List<String> from, List<Integer> to) {
|
|
to.addAll(from.stream().map(String::length).collect(Collectors.toList()));
|
|
}
|
|
}
|