import java.util.Collections;
import java.util.Date;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TimeZone;
import java.util.Vector;
import java.util.Locale;
public class Hello {
public static void main(String args[]) throws Exception
{
Map map = Collections.synchronizedMap(new HashMap());
map.put("fan", "fanyunfei");
map.put("hao", "haoyuan");
map.put("zhang", "zhangfang");
Set> set = map.entrySet();
Iterator> iter = set.iterator();
while (iter.hasNext()) {
Map.Entry entry = iter.next();
System.out.println(entry.getKey() + " " + entry.getValue());
}
}
}
阅读(955) | 评论(0) | 转发(0) |