Originally posted by Ken Blair:
Can you not simply cast it to a LinkedList after you get the List back?
No, that's what he started with. The problem is that the return value of synchronizedList() is
not a LinkedList.
Jeff, the only choice I'm aware of for you is to make a SynchronizedLinkedList wrapper that wraps a LinkedList, forwards every method to that member LinkedList, except that all the methods are synchronized. A decent
IDE should be able to generate this baby for you without any effort on your part.