Sanjeev Charla wrote:
If two array lists are declared like this,
if i want to copy from one list to other say,
i got the no suitable method found error.
how to do this ?
Simply, if you don't want to violate the type safety of the generics, you can't. Those two declarations are wildcards, and it is possible to have one refer to a generic type that is incompatible with the other.
To do what you want (and keep type safety), you can't use wildcards, and the generic types have to be the same (edit: almost correct, the list being added has to have a generic type that IS-A the generic type of the list being added to).
Henry