mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
10 lines
305 B
Java
10 lines
305 B
Java
// "Replace 'collect(summingLong())' with 'mapToLong().sum()'" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Main {
|
|
public void remove(List<Integer> ints, List<String> data) {
|
|
ints.remove(data.stream().collect(Collectors<caret>.summingLong(String::length)));
|
|
}
|
|
} |