public static void batchInsert(List<Integer> ints,int count ) {
        int begin =0;
        int end = begin+count ;
        while (begin<=ints.size()-1){
            List<Integer> integers = ints.subList(begin, end<=ints.size()?end:ints.size());
            //插入数据
            System.out.println(integers);
            begin = end;
            end = begin+count ;
        }

    }
    

 

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-26
  • 2021-07-10
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案