HashMap hm = new HashMap();
hm.put("tianye", "yetongmu");
hm.put("niit","lgxr");
hm.put("bjsxt", "java");
hm.put("today", new Date());
Map.Entry me = (Map.Entry)hm.entrySet();
为什么会提示转型出错?
hm.put("tianye", "yetongmu");
hm.put("niit","lgxr");
hm.put("bjsxt", "java");
hm.put("today", new Date());
Map.Entry me = (Map.Entry)hm.entrySet();
为什么会提示转型出错?
解决方案 »
- JSplitPane中setonetouchexpandable方法的实现机制
- 为什么我的 jsp老师传不了值呢
- 如何将JTextField的内容加到JList列表框中(初学者)
- 为什么查询SQL Server数据库时会出现这种错误
- 如何用JUnit测试add方法
- 写了个多文档记事本,大家看看,顺便问一句,java这个单词到底怎么读:)
- 散分。大家好。吃饱了吗?
- 如果我使用或者覆盖了一个不鼓励使用的API,会有什么后果,我怎么知道那些API不鼓励覆盖?
- 分数不多, 问题不难,JAVA通过ODBC调用DBF出错......快来看看
- 什么在Windows下cmd命令中用不了javac命令?
- 将文件为UTF-8格式转化为ANSI格式,仍然乱码
- 一个小计算器中的小问题
Set<Map.Entry> me = hm.entrySet();
hm.put("tianye", "yetongmu");
hm.put("niit","lgxr");
hm.put("bjsxt", "java");
hm.put("today", new Date());
// Map.Entry me = (Map.Entry)hm.entrySet();
Set<Map.Entry<Object,Object>> me = hm.entrySet(); System.out.println(me);
}