Delete elements from ArrayList
807598Dec 16 2005 — edited Dec 16 2005Hello,
I wrote a method that was supposed to delete elements from an array list. The method is supposed to search for a given element and delete. I did not know how to implement the search, I tried this code. But it does not do any thing.
public void deleteMembers(Club c){
if(c instanceof Club){
super.members.remove(c);
}
}
Could you possibly help please?
thanks
R