摘要:
测试程序如下:1:获取键值4种:entrySet: 2种(foreach,iterator)和 keySet+get: 2种(foreach,iterator) /** * 获取键与值 */ public static void iterEntry(Map map){ System.out.println("======entrySet 2种========"); Set> entrySet =map.entrySet(); System.out.println("1==foreach====... 阅读全文