I have two Lists, say listA and listA1, listA contains object of class A type and listA1 also contains object of type class A.But listA added class A objects by java code and listA1 adds class A objects by converting JSON String to Class A.
Now I need to compare listA and listA1. If listA contains any objects which also are in listA1 I need to remove that object and return back listA with all the objects which are not in listA1.
How can I achieve this in Java?