Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0330 Check for common elements

static boolean disjoint(Collection<?> c1, Collection<?> c2) Returns true if the two specified collections have no elements in common.