CopyOnWriteArrayList的迭代器不支持增删改
privatestaticvoidCopyOnWriteArrayListTest(){CopyOnWriteArrayList<String>list=newCopyOnWriteArrayList<>();list.add("test1");list.add("test2");list.add("test3");list.add("test4");Itera