如何避免出现fail-fast? (1)直接使用普通for循环进行操作 (2)使用Iterator提供的remove方法进行操作 (3)使用一些fail-safe的集合类,例如CopyOnWriteArrayList