Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1) if的条件报错HashMap map1= new HashMap(); map1.put(1, "212"); Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1){ m

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 09:24:16
Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1) if的条件报错HashMap map1= new HashMap();    map1.put(1,
xRN@ 6!m֖,tdF(M; 1Āĸ J G1"J /iǚWnͤܞsZ 60HH%CJY#IYY+X`"̠iH9Fpu'[)h%+@*"AXBIh9lsg{@Q]?КAf"r͡9|v.2;#feT("ɲ L!VR덮oIa3|q }_O{}J[oT3Re$ۑ

Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1) if的条件报错HashMap map1= new HashMap(); map1.put(1, "212"); Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1){ m
Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1) if的条件报错
HashMap map1= new HashMap();

map1.put(1, "212");
Iterator it =map1.keySet().iterator();
while(it.hasNext()){
if((Integer)it.next()==1){
map1.get(it.next());
System.out.println("11111111");

Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1) if的条件报错HashMap map1= new HashMap(); map1.put(1, "212"); Iterator it =map1.keySet().iterator(); while(it.hasNext()){ if((Integer)it.next()==1){ m
你迭代器要是用泛型.
Iterator it=map1.keySet().iterator();
还有就是在使用迭代器的时候,你判断一次,游标走了2次,使用了2次next();
while(it.hasNext()){
int key=it.next();
if(key==1)
.//后边自己写了
}