Hello!
I looked in some tutorial about the parametrized arraylists and I have a problem when using them.
Here is my code:
And I have the following error on the add (): The method add (capture-of?) In the type ArrayList <capture-of ?> is not applicable for the arguments (String) Where am I wrong? Do you have some idea about it.Code:ArrayList <?>[] ts = new ArrayList <?>[2]; for(ArrayList <?> A: ts) a = new ArrayList <String>(); ts[0].add("Hello");
Bookmarks