title: Cannot make a static referecnce to the non- static type E
body: <pre><code>import java.util.*;
  
  public class Gen {
      public static void main(String[] args) {
          String[] name = {"Selva", "KSA", "selva","ksa"};
          List&lt;E&gt; s = new ArrayList&lt;E&gt;(); 
          s.addAll(Arrays.asList(name));
          System.out.println(s);
      }
  }
  </code></pre>
  
  <p>while Compiling i am getting error like below</p>
  
  <blockquote>
    <p>ERROR in Gen.java (at line 6)</p>
  
  <pre><code>    List&lt;E&gt; s = new ArrayList&lt;E&gt;(); 
           ^
  </code></pre>
    
    <p>Cannot make a static reference to the non-static type E</p>
    
    <p>ERROR in Gen.java (at line 6)</p>
  
  <pre><code>  List&lt;E&gt; s = new ArrayList&lt;E&gt;(); 
                              ^
  </code></pre>
    
    <p>Cannot make a static reference to the non-static type E</p>
  </blockquote>