Reputation: 1290
I have two collections of Strings in java:
A: ("abc", "bcd" "cde")
B: ("abc", "cde")
I pretend to get a new collection that contains all elements that are in A and are not in B, in math something like: C = A\B
In this case C would be something like:
C: ("bcd")
How could this be done efficiently in java using collections?
Thanks.
Upvotes: 0
Views: 210