SyntaxFix
Write A Post
Hire A Developer
Questions
You can convert them to Set collections, and perform a set difference operation on them.
Set
Like this:
Set<Date> ad = new HashSet<Date>(a); Set<Date> bd = new HashSet<Date>(b); ad.removeAll(bd);