Split a Map into sublists
The implementation is simple enough to require any comments. Just a few things:


Is LinkedList a requirement? Can't it be done by an ArrayList?
Use Math.min while making the subList.


An alternative for simpler solution
You can add the Guava library to your project and use the Lists.partition method, e.g.

List&lt;Integer&gt; items = ...
List&lt;List&lt;Integer&gt;&gt; subLists= Lists.partition(items, pageSize);