I have a program where I store 4 Arraylists of floats that are positions of pixels, namely
x_List_ex,y_List_ex,
and
x_List, y_List.
They contain points of pixels on screen which are being stored in the respective Arraylists ,
x_List_ex is in conjuction with
y_List_ex, referring to saved pixels that
we want to delete and
x_List is in conjunction with
y_List as before.
What I want to happen is :
1) compare
x_List_ex and
x_List, 2) get their common elements,
and their
indices,
3)
delete those
elements from
x_List_ex after getting the indices, 4) based on those saved
indices, delete the according elements from
y_List_ex.
I haven't managed to tackle it yet, the tricky part for me is when I try to find the
indices, but I've been having problems in general.
Any help would be greately appreciated ;)
Should anyone need any further explanations, let me know