场景:
1、以下方式可以获取元素的索引,并通过索引重设对应的元素值
2、数据集准备
List<PersonDto> personDtoList = ListUtil.toList(
new PersonDto(1L, "张三1"),
new PersonDto(2L, "张三2"),
new PersonDto(3L, "张三3"),
new PersonDto(4L, "张三4"),
new PersonDto(5L, "张三5"),
new PersonDto(6L, "张三6"),
new PersonDto(7L, "张三7"),
new PersonDto(8L, "张三8"),
new PersonDto(9L, "张三9"),
new PersonDto(10L, "张三10"),
new PersonDto(11L, "张三11")
);
一: