private Hashtable<String, String> emails =
new Hashtable<String, String>();
for (
Map.
Entry<String, String> m : emails.entrySet()) { logger.info(
"email-" + m.getKey() +
":" + m.getValue()); } Iterator it = emails.keySet().iterator();
while (it.hasNext()){ String key; key=(String)it.next(); logger.info(
"email-" + key +
":" + emails.get(key)); }
from: http://hi.baidu.com/earth_it/blog/item/833b74092e89a2c73bc763a7.html/cmtid/26b159ed8c89e2d9b21cb16a