日期:2014-05-20 浏览次数:20675 次
import java.util.*;
public class Test
{
//@unchecked
public static void main(String[] args)
{
Map map = new HashMap();
map.put("First",1);
map.put("second",2);
map.put("third",3);
for (Object obj :map.keySet() )
{
System.out.println(obj+":"+map.get(obj));
}
}
}