Java ArrayList在foreach中remove的
我告诉你,这种方式会报错 @Test(expected = ConcurrentModificationException.class) public void testListForeachRemoveThrow() { List list = new ArrayList<>(); list.add(“1”); lis...