public class TwoBridge implements Piece{
private HashSet<Hexagon>[] permutations;
public TwoBridge(){
permutations = new HashSet<Hexagon>[6];
Hi, I'm trying to create an array of Sets of hexagons (hexagons being a class i created).
However I get this error when I try to compile
oliver@oliver-desktop:~/uni/16/partB$ javac oadams_atroche/TwoBridge.java
oadams_atroche/TwoBridge.java:10: generic array creation
permutations = new HashSet<Hexagon>[6];
^
1 error
How can I resolve this?