title: Error while trying to use java.util.ArrayList on Eclipse
body: <p>I'm trying to work with java.util.ArrayList in a Java project in Eclipse. It resolves funny on this IDE, contrary to what I'm used to on NetBeans. For example:</p>
  
  <p>On NetBeans, I can create a Generic ArrayList simply as follows:</p>
  
  <pre><code>List&lt;Bundle&gt; bundles = new ArrayList();
  </code></pre>
  
  <p>However, on Eclipse, this is the structure, if I'm to successfully declare and initialize an ArrayList:</p>
  
  <pre><code>List bundles = (List) new ArrayList&lt;Bundle&gt;();
  </code></pre>
  
  <p>I'm forced to do a type casting, and the Generisation can only be done on the right side.</p>
  
  <p>This, however, is not too bad, untill I try to call call some of the ArrayList methods, such as <code>bundles.add(bundle1);</code>. I get an error highlight on the method <code>add()</code>.</p>
  
  <p><code>dundles.</code> <code>Ctrl+space</code> gives me a 'No Default Proposals'</p>
  
  <p>Have I got my IDE platform badly, or incompletely configured? What could be the problemo?</p>
  
  <p>Thank you all in advance.</p>
  
  <p>--- >  </p>
  
  <blockquote>
    <p>Eclipse Java EE IDE for Web Developers.<br>
    Version: Mars.1 Release (4.5.1)<br>
    Build id: 20150924-1200  </p>
  </blockquote>
  
  <p>--- >  </p>
  
  <blockquote>
    <p>java version "1.8.0_60"<br>
    Java(TM) SE Runtime Environment (build 1.8.0_60-b27)<br>
    Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode)</p>
  </blockquote>