blob: bedd4e2f4a7a30a68c47fe44a3b98c802ef9360c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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);
}
}
|