title: How do you create an integer ArrayList?
body: <p>I am trying to create an array of Arraylists in Java. I have declared it in the following way:</p>
  
  <pre><code>ArrayList[][][] arrayQ = new ArrayList[90][13][18];
  
  for (int i = 0; i &lt; 90; i++) {
    for (int j = 0; j &lt; 13; j++) {
      for (int k = 0; k &lt; 18; k++) {
        arrayQ[i][j][k] = new ArrayList&lt;int&gt;();
      }  
    } 
  }
  </code></pre>
  
  <p>However, adding the <code>&lt;int&gt;</code> inside the while loop throws an error (the IDE I'm using unfortunately doesn't give me a very good error message).</p>
  
  <p>What's the proper way to create an integer ArrayList?</p>