测试修改
parent
3b734f2664
commit
f40689145c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue