62,621
社区成员
发帖
与我相关
我的任务
分享
HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();
Integer r = new Integer((int)(Math.random() * 20));
if( hm.containsKey(r) ){
//hm.get(r) ++;编译器报错
Integer kk = hm.get(r);
kk ++;//能通过编译
}
[/quote]
我蒙的![/quote]
哈哈,真是蒙的?
感觉有一定的道理,就像是 1++ 肯定是不行的,应该是 i ++[/quote]
就是蒙的!
[/quote]
我蒙的![/quote]
哈哈,真是蒙的?
感觉有一定的道理,就像是 1++ 肯定是不行的,应该是 i ++
[/quote]
我蒙的!