Let’s say I have 2 ArrayList of Points:
And I want to obtain a new list :
How do I do that?
Using two foreach loops to compare the two lists, element by element. I think it’s a very inefficient way. Are there any other ways?