D
Dan
I've tried:
private Vector<Vertex>[] anArray = null;
as a field in a class which works fine. But when I try to initialize
it in the constructor for that class with:
this.anArray = new Vector<Vertex>[];
It doesn't work. The error is "Cannot create a generic array of
Vector<Vertex>."
Vertex is a custom class that I've made. Hopefully it isn't a Sun Java
class. If it is I haven't imported it so I don't know why it would be
getting confused if that was the case.
Any help would be great.
Thanks,
-Dan
private Vector<Vertex>[] anArray = null;
as a field in a class which works fine. But when I try to initialize
it in the constructor for that class with:
this.anArray = new Vector<Vertex>[];
It doesn't work. The error is "Cannot create a generic array of
Vector<Vertex>."
Vertex is a custom class that I've made. Hopefully it isn't a Sun Java
class. If it is I haven't imported it so I don't know why it would be
getting confused if that was the case.
Any help would be great.
Thanks,
-Dan