C
Christoph
The following command is syntactically invalid according to the Java
compiler:
Set<Item>[][] itemSets = new HashSet<Item>[4][2];
(The error is "Cannot create a generic array of HashSet<Item>")
Is there a correct way to accomplish this? As clear from the code, I
need a 4x2 array of Sets, each of which is restricted to instances of
Item.
compiler:
Set<Item>[][] itemSets = new HashSet<Item>[4][2];
(The error is "Cannot create a generic array of HashSet<Item>")
Is there a correct way to accomplish this? As clear from the code, I
need a 4x2 array of Sets, each of which is restricted to instances of
Item.