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
Post a Comment