I have two arraylist with a number of model objects.I want to find the difference of these arraylists.When I use strings instead of models, I got the difference with removeall function in collection framework. But for model objects it doesnot work. Please any one help me
Share
Implement
equalsandhashCodein your custom object and you can use the same approach as you did withStrings.