mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 09:05:52 +07:00
GitOrigin-RevId: c4db6507c258e5611f6d47b9373a0c2531802345
9 lines
219 B
Java
9 lines
219 B
Java
// "Collapse loop with stream 'forEach()'" "true-preview"
|
|
import java.util.List;
|
|
|
|
class Sample {
|
|
public void some(List<String> from, List<Integer> to) {
|
|
from.stream().map(String::length).forEach(to::add);
|
|
}
|
|
}
|