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 -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -