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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -