There are two TreeSets in my app:
TreeSet
set1 = {501,502,503,504} set2 = {502,503,504,505}
I want to get the symmetric difference of thes
Those looking for set subtraction/complement (not symmetric difference/disjunction) can use CollectionUtils.subtract(a,b) or Sets.difference(a,b).