How do I get an array slice of an ArrayList in Java? Specifically I want to do something like this:
ArrayList
ArrayList inputA = input.sub
Although this post is very old. In case if somebody is looking for this..
Guava facilitates partitioning the List into sublists of a specified size
List intList = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8); List> subSets = Lists.partition(intList, 3);