hashmap的get方法得到的值为空 - ITeye问答
getClientSocket(String uid){ return (SerConClientThread)hm.get(uid); } }...如果代码中先取的话, 肯定取不到。 hashmap是根据key的hashcode来存取的,现在...
Map里取值,取不到返回什么?_百度知道
最佳答案: Map map = new HashMap(); map.put(1, 1); System.out.println(map.get(2)); 3行代码就能搞定,这样的问题最好自己测试下,印象才深刻。更多关于为什么取不到return的hashmap的问题>>