list均匀分割

import com.google.common.collect.Lists;

List<Integer> list = new ArrayList<>();
list.add(1);
.....
list.add(102);

List<List<Integer>> sptsList = Lists.partition(lists, 10);

输出list,查看结果
posted @ 2023-04-18 17:52  xudong5273  阅读(33)  评论(0)    收藏  举报