錯題糾正

Ⅰ.list是一個ArrayList的對象,當將選項(A)的代碼填到//todo delete 處時,可以在Iterator遍歷的過程中正確並安全地刪除一個list中保存地對象。 A.it.remove() B.list.remove(index) C.list.remove(obj) D.list.delete(index) 解析: Iterator支持從源集合中安全地刪除對象,刪除的方法爲在I
相關文章
相關標籤/搜索