mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
9 lines
194 B
Java
9 lines
194 B
Java
// "Replace with forEach" "true"
|
|
import java.util.List;
|
|
|
|
class Sample {
|
|
public void some(List<String> from, List<Integer> to) {
|
|
from.stream().map(String::length).forEach(to::add);
|
|
}
|
|
}
|