Questions like "what does method XYZ do" are generally answered by the javadocs. addAll, containsAll and clear are all part of the java.util.Collection interface. After reading through their descriptions, what do you think those methods do?
As an aside, I've added
CODE tags to your post. They make reading code much easier; please use them when posting code of any length.
Further discussion should take place in
this duplicate thread.
[ July 10, 2007: Message edited by: Ulf Dittmer ]