Originally posted by Ilja Preuss:
a.removeAll(b);
As far as I know the function he gives you here does not exist(at least not according to the
Java API) There is a removeAll function in the List class but it removes all the items in the list
void removeActionListener(ActionListener l)
Removes the specified action listener so that it no longer receives action events from this list.
void removeAll()
Removes all items from this list.
void removeItemListener(ItemListener l)
Removes the specified item listener so that it no longer receives item events from this list.
Update: Ok so now I am baffled I tried this and it DID work. I am not sure why considering according to the 1.6
doc there is not a function. Anyone have an explination for this? Am I looking at an old API or something?
http://java.sun.com/javase/6/docs/api/ [ October 27, 2008: Message edited by: Jackie Gleason ]