June 2018
Beginner
722 pages
18h 47m
English
There is one straightforward static method for comparing two collections in the class Collections:
boolean disjoint(Collection<?> c1, Collection<?> c2): Returns true if none of the elements of one collection equal any element of another collection
As you probably guessed, this method uses the method equals() to identify equal elements.
Read now
Unlock full access