mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
12 lines
229 B
Java
12 lines
229 B
Java
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.stream.Stream;
|
|
|
|
class App {
|
|
|
|
void foo(Stream<Integer> boxed) {
|
|
final Map<Integer, Integer> count = boxed.collect(HashMap::new, null, HashMap::putAll);
|
|
}
|
|
|
|
}
|