写时复制ListCopyOnWriteArrayListpublicclassCopyOnWriteArrayListTest{publicstaticvoidmain(String[]args)throwsInterruptedException{List<Integer>list=n