title: An issue with a generic method when passing an array as a parameter
body: <p>I have the following method that I want to pass arrays of different types:</p>
  
  <pre><code>    private &lt; E &gt; void print(E[] arr) {
          for(E s: arr) {
              System.out.println(s + "   ");
          }
      }
  </code></pre>
  
  <p>When I pass a <code>List&lt;Double&gt;</code> array to the <code>print</code> method, I get the following error:</p>
  
  <pre><code>The method print(E[]) in the type IAnalysisMocker is not applicable for the arguments (List&lt;Double&gt;)
  </code></pre>
  
  <p>Is there any suggestions of how to solve it?</p>