Is easy way to get the intersection of two sets? I have:
Set<Long> set1 = {1,2,3}
Set<Long> set2 = {2,3,4}
And I looking or method like:
Set<Long> intersection = new HashSet<>();
intersection.intersect(set1, set2);
And intersection.toString() produce me set contains {2,3}