public class TwoBridge implements Piece{ private HashSet<Hexagon>[] permutations; public TwoBridge(){ permutations = new HashSet<Hexagon>[6];
Hi, I am trying to create an array of sets of hexagons (hexagons is the 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 solve this?
java
oadams
source share