java - Intersection of multiple sets (as collections) -
how can find intersection of multiple (more two) sets in java?
retainall wont work since need ability intersection between more 2 sets
you can use set's retainall(other) method retains items in both sets. alters original set, may want take copy of set first (use appropriate constructor).
Comments
Post a Comment