遍歷集合時出現的異常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("-")){
相關文章
相關標籤/搜索