Error generic array creation
<pre><code>public class TwoBridge implements Piece{
    private HashSet&lt;Hexagon&gt;[] permutations;

    public TwoBridge(){
        permutations = new HashSet&lt;Hexagon&gt;[6];
</code></pre>

<p>Hi, I'm trying to create an array of Sets of hexagons (hexagons being a class i created).</p>

<p>However I get this error when I try to compile </p>

<pre><code>oliver@oliver-desktop:~/uni/16/partB$ javac oadams_atroche/TwoBridge.java 
oadams_atroche/TwoBridge.java:10: generic array creation
        permutations = new HashSet&lt;Hexagon&gt;[6];
                       ^
1 error
</code></pre>

<p>How can I resolve this?</p>
