if(names.equals(n))
names is an Enumeration
n is args[0] which is a String.
An Enumeration and a String can never be equal.
ps: Hashtable is designed for this kind of thing, so it has other methods that you will find very useful... spend 10 minutes reviewing all its methods before choosing which to use.