title: Dynamically creating ArrayList inside a loop
body: <p>How do we create arraylist dynamically inside a loop?</p>
  
  <p>something like - </p>
  
  <pre><code>for(i=0;i&lt;4;i++)  
  {  
  List&lt;Integer&gt; arr(i) = new ArrayList&lt;&gt;();  
  }         
  </code></pre>