I'm a Principal at ThoughtWorks, classical composer, and physics amateur.
It's strange seeing this:
List copy = (List) ((ArrayList) original).clone();
When this will do:
List copy = new ArrayList(original);
And as a bonus original need not be an ArrayList.
ArrayList
Post a Comment
No comments:
Post a Comment