To compare two objects of an arrylist, you can use comparator interface which is present in java.util.Comparator package.Comparator interface has compare method to compare two objects.
In your code ,the class for which you want to compare its objects should implement Comparator interface and you have to override compare method in that class. so when you try to compare that objects using "equals()" method it in turn calls compare method .
you can use org.apache.commons.collections.CollectionUtils, if u u do use this , then simply use subtract method to compare the two lists, but create to other lists before u do this.
On the other hand if u r not using Collection framework u can again create another two lists and compare the members of the class, and if member is on list1, that means it is not on list2 and vice verse. this only works if the members of the lists are unique.
what make two arraylists equals in your case, how about duplicates ??
does the order of the objects in the arraylist counts in the comparison ?
this link may help : http://stackoverflow.com/questions/8589351/how-to-compare-two-arraylist