Eclipse message saying List cannot be resolved to a type
<p>I am trying the following code in eclipse:</p>

<pre><code>public class A {    
    List&lt;Integer&gt; intList = new ArrayList&lt;Integer&gt;();
}
</code></pre>

<p>However it gives me an error saying: List cannot be resolved to a type and ArrayList cannot be resolved to a type. </p>

<p>Is there some library I need to add and how do I do that?</p>
