CopyOnWriteArrayList通过迭代 remove 会抛UnsupportedOperationException
使用CopyOnWriteArrayList删除元素 /** * 测试CopyOnWriteArrayList的remove()方法 */ public static void testCopyOnWriteArrayList() { CopyOnWriteArrayList<String> copyOnWriteArrayList = new CopyOnWriteArrayList<String>()