in my class i have two hashtables.one hashtable consists of "IP" as a string(key) and "clientInfo"(an object of another class)as a value. how to do with hashtable.
I'm not exactly sure what you are asking. If you need help understanding how to use the HashMap class and other Collections, then you should check out the Collections Trail from Sun's Java Tutorial. This will at least give you a basic understanding of the methods available in different collection classes, including HashMap. Also, if this doesn't help solve your problem directly, then you will have the terminology to help you ask more questions.