mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-07 17:02:37 +07:00
11 lines
316 B
Java
11 lines
316 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Test {
|
|
static void test(List<String> list) {
|
|
Map<Integer, Long> map = list.stream().coll<caret>ect(Collectors.groupingBy(String::length, Collectors.counting()));
|
|
}
|
|
} |