测试修改

dev
IT-xiaoXiong 2021-12-02 15:30:46 +08:00
parent 3b734f2664
commit f40689145c
1 changed files with 17 additions and 0 deletions

View File

@ -333,4 +333,21 @@ public class NewUtilTest {
System.out.println(matcher.group("field"));
}
}
@Test
public void testSplic(){
List<Integer> 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);
}
}