一 概述
代码
List<Integer> list = new ArrayList<>();
list.add(0);
list.add(1);
list = list.subList(0,1);
System.out.println("list = " + list);
结果
2024-04-12 11:41:14
代码
List<Integer> list = new ArrayList<>();
list.add(0);
list.add(1);
list = list.subList(0,1);
System.out.println("list = " + list);
结果