diff --git a/customization/test/NewUtilTest.java b/customization/test/NewUtilTest.java index 0e8580a..1065f46 100644 --- a/customization/test/NewUtilTest.java +++ b/customization/test/NewUtilTest.java @@ -333,4 +333,21 @@ public class NewUtilTest { System.out.println(matcher.group("field")); } } + + + @Test + public void testSplic(){ + List list = new ArrayList<>(); + list.add(0); + list.add(1); + list.add(2); + list.add(3); + list.add(4); + list.add(5); + list.add(6); + System.out.println(list); + System.out.println(list.subList(0,2)); + list.removeAll(list.subList(0,2)); + System.out.println(list); + } }