开发者

String key not found in HashMap

I have what appears to be a very strange problem. I have a HashMap with one entry that has a key of "1". When I do a get by that 开发者_开发知识库key I get nothing back. I have no multi-threading, though everything is run in a Swing thread and the map is a member. Please see this screenshot of the debugger: http://img207.imageshack.us/i/keynotfound.png/

Thanks!


This is not "nothing", this is, most probably, an empty ArrayList, so the key is found correctly.

If you expect this to be something else and want to know why it isn't what you expect, the best place too look is the place where you put this value to the map.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜