核心要点最重要的一点是:在遍历一个集合时,绝对不要使用for(inti=0;i<list.size();i++)这样的循环来删除元素,这样做会导致IndexOutOfBoundsException(索引越界异常)...