blob: a99eafcc46dc43fbc2bcc24afcc973ca357395e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import java.util.*;
class Test {
HashMap<String, Set<String>> f;
void foo(String s, String s1) {
Set<String> set = f.get(s);
if (set == null) {
set = new HashSet<String>();
f.put(s, set);
}
set.add(s1);
}
}
class HashMap<K, V> extends java.util.HashMap<K, V>{}
|