Set<Obj>[][] map=new Set<Obj>[20][20];
compiler: generic array creation
What's wrong?
Printable View
Set<Obj>[][] map=new Set<Obj>[20][20];
compiler: generic array creation
What's wrong?
You cant use generics with an array because you can only have one object in an array.
You may use Hashmap<K,V> instead of that kind of implementation....
Set<Obj>[][] map=(Set<Obj>[][])new Set[20][20];