遍历集合时出现的异常Exception in thread "main" java.util.ConcurrentModificationException

若是这样写的话,就会出现异常 public void operate(List list){ for (Iterator it = list.iterator(); it.hasNext();) { String str = (String)it.next(); if (str.equals("-")){
相关文章
相关标签/搜索