boolean group(Capital capital,Grouper grouper,int l)
{
for (Iterator it = capital.getCompositeList().iterator(); it.hasNext();)
{
Capital ct = (Capital) it.next();
if(this.group(ct,grouper, startLevel+1))
it.remove(); //为什么这一步会报java.util.ConcurrentModificationException??
}
return checkIsDel(capital,grouper);
}为什么这一步会报java.util.ConcurrentModificationException??超级郁闷了,请老鸟帮忙看看了,谢谢
{
for (Iterator it = capital.getCompositeList().iterator(); it.hasNext();)
{
Capital ct = (Capital) it.next();
if(this.group(ct,grouper, startLevel+1))
it.remove(); //为什么这一步会报java.util.ConcurrentModificationException??
}
return checkIsDel(capital,grouper);
}为什么这一步会报java.util.ConcurrentModificationException??超级郁闷了,请老鸟帮忙看看了,谢谢
关于Java API中文文档一些术语的疑问别忘了给俺分啊
你的这个for循环为什么没有指向下一个的啊?是不是应该这样啊?for (Iterator it = capital.getCompositeList().iterator(); it.hasNext(); it = it.next())因为我不知道你整个程序是什么样子的 我猜测的啊