import
java.util.*;
public class TestArgs
words {
public static void main(String[] args) {
Map m = new HashMap();
for(int i = 0; i < args.length; i++) {
int freq = ((Integer) m.get(args) == null ? 0 : (Integer) m.get(args));
m.put(args, (freq == 0 ? 1 : freq + 1));
}
System.out.println
(m.size() + " distinct
words detected:");
System.out.println(m);
}
}