Archive for September 29th, 2009
29th September
2009
同事在页面上写了个死循环,跟了半天才发现。具体代码如下:
for(Iterator it = XXXX.iterator(); it.hasNext();){ if(XXX= XXX){ XX1 =true; } // OTHER CODE. }
具体问题出现在这里, it.hasNext()。 如果使用 it.next(),就ok了。
0 Comments