title: Defining an array of List of integers in Java
body: <p>I have an array. For each element of the array, I want to store multiple integers. I know that in C I can make an array of integer pointers, and use that pointer to make a list.</p>
  
  <p>In Java, I can make an array of object 'A', where A has a list of integers. But why can't I do something like this</p>
  
  <pre><code>List&lt;Integer&gt;[] arr = new ArrayList&lt;Integer&gt;[]();
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>Type mismatch: cannot convert from ArrayList to List[]</p>
  </blockquote>