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 -

c++ - Using Gtest how return different values in ON_CALL? -

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