while (itr.hasNext()) {
Object obj = itr.next();
System.out.println(obj);
}
}
public void test4()
{
HashMap hm=new HashMap();
{
hm.put("item" i,"value" i);
}
Set set=hm.entrySet();
Iterator itr=set.iterator();
while (itr.hasNext())
{
Map.Entry me=(Map.Entry)itr.next();