java - can we insert a string into the hashtable object -


hashtable expiryrefdata; string icdexpiry;  try {     expiryrefdata = capsutil.getrefdata(expiry);     icdexpiry = (string) expiryrefdata.get(expiry); } 

can body please explain how storing string directly expiryrefdata , how retrieving values in other string variable

don't use hashtable. use map<k, string> instead. if need synchronized access, consider using synchronized wrapper (refer java.util.collections).

(edit: map<string, string> do. if there special need ahashmap` enough.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -