try {
for(String s = br.readLine(); s!=null; s=br.readLine()) {
StringTokenizer st = new StringTokenizer(s);
while(st.hasMoreTokens()) {
String tok = (String)split(st.nextToken()).a;
Counter c = (Counter)map.get(tok);
if(c!=null)
c.increment();
else
map.put(tok, new Counter());
}
}
} catch (IOException e) { e.printStackTrace(); }
HashSet set = new HashSet();