title: How to create an array of a collection?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2927391/whats-the-reason-i-cant-create-generic-array-types-in-java">What&rsquo;s the reason I can&rsquo;t create generic array types in Java?</a>  </p>
  </blockquote>
  
  
  
  <pre><code>HashSet&lt;Integer&gt;[] rows = new HashSet&lt;Integer&gt;[9];
  </code></pre>
  
  <p>gives me a compilation error: generic array creation.</p>