Well, I have a class Customer (no base class).
I need to cast from LinkedList to List. Is there any clean way to do this?
Just so you know, I need to cast it
LinkedList implements List, so you can implement
List< String > list1 = new LinkedList< String >();
Or do you want to cast from LinkedList< String > to List< int >? in this case you have to pick every single element and convert it to an integer.