Generic Vector in Java

Posted by portoalet on Stack Overflow See other posts from Stack Overflow or by portoalet
Published on 2010-03-26T08:04:00Z Indexed on 2010/03/26 8:13 UTC
Read the original article Hit count: 150

Filed under:
|
|

Hi,

Why doesn't the add() method here compile?

Vector<?> vectorList[] = new Vector<?>[10];
vectorList[0].add("elem1");

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about generics