cast a List to a Collection

Posted by Mercer on Stack Overflow See other posts from Stack Overflow or by Mercer
Published on 2010-03-19T11:15:06Z Indexed on 2010/03/19 11:21 UTC
Read the original article Hit count: 149

Filed under:
|
|

Hello, i have some pb. I want to cast a List to Collection in java

Collection<T> collection = new Collection<T>(mylList); 

but i have this error

Can not instantiate the type Collection

© Stack Overflow or respective owner

Related posts about java

Related posts about collections