Error generic array creation

You can’t create arrays with generics. Use a Collection<Set<Hexagon>> or (Array)List<Set<Hexagon>> instead.

Here’s the formal explanation.

Leave a Comment