title: new ArrayList<int>() failing in Java
body: <p>I have the following code:</p>
  
  <pre><code>List&lt;int&gt; intList = new ArrayList&lt;int&gt;();
  for (int index = 0; index &lt; ints.length; index++)
  {
      intList.add(ints[index]);
  }
  </code></pre>
  
  <p>It gives me an error...</p>
  
  <pre><code>Syntax error on token "int", Dimensions expected after this token
  </code></pre>
  
  <p>The error occurs on the line starting with <code>List</code>. Can someone explain why I am getting the error?</p>