SyntaxFix
Write A Post
Hire A Developer
Questions
You can add the Guava library to your project and use the Lists.partition method, e.g.
List<Integer> bigList = ... List<List<Integer>> smallerLists = Lists.partition(bigList, 10);