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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

Maven Javadoc 'Cannot find default setter' and fails -

asp.net core mvc - How important is the global.json and src folder? -