Problem with remove a node from a list
ArrayList<My_node> list = new ArrayList<My_node>(size_of_list);
My_node is :
public class My_node {
public int key;
public String value;
publicMy_node(int x,String y) {
key = x;
value = y;
}
}
public void del_(int num,String name) {
for(j = 0;j<list.size();j++) {
if(list.get(j).key == num && list.get(j).value == name ) {
list.remove(j);
return;
}
}
}
But unfotrtunately the node is not deleted!!!
Could you plz tell me where is the problem?
Thanks in advance!>

