title: Large ArrayList break down into batches
body: <p>I have a List of size 30K and I split them into chunks of 1000 as I need to use the ids from the sublist  to get rest  endpoint   and do some assertions. I am using jersey client to talk to rest endpoints</p>
  
  <pre><code>ArrayList&lt;String&gt; ga1 = new ArrayList&lt;&gt;(Ids.subList(1,1000));
  ArrayList&lt;String&gt; ga2 = new ArrayList&lt;&gt;(Ids.subList(1001,2000));
  ArrayList&lt;String&gt; ga3 = new ArrayList&lt;&gt;(Ids.subList(2001,3000));
  ArrayList&lt;String&gt; ga4 = new ArrayList&lt;&gt;(Ids.subList(3001,4000));
  ...
  ArrayList&lt;String&gt; ga30 = new ArrayList&lt;&gt;(Ids.subList(29001,sizeOfTheOriginalList));
  
  checkSubList(ga1);
  {
      Assertions;
  }
  
  checkSubList(ga30);
  {
      Assertions;
  }
  </code></pre>
  
  <p>Is there a  better way to split the original list and get the sublist </p>