Cloning a Collection

I moved the content to Biting Code, my blog dedicated to Java and JVM-based languages.

If you want to clone a collection, and what you have is just a pointer to its Collection interface, you have to (safely) downcast it to its actual type.

No comments:

Post a Comment