title: How to create array of ArrayLists
body: <p>for my program I need to create an array of ArrayLists.</p>
  
  <p>Is this even possible?</p>
  
  <p>This is the code I am trying to use:</p>
  
  <pre><code>public static ArrayList&lt;Chemical&gt; [] [] chemicals;
  chemicals = new ArrayList&lt;Chemical&gt;[cols][rows];
  </code></pre>
  
  <p>It gives a generic array creation error.</p>
  
  <p>Thank you.</p>