I need to get the size of an intersected set, and I then need to use the size in a formula.
Set<String> a;
Set<String> b;
a.retainAll(b).size();
// error: cannot invoke size() on primitive type boolean//
I've tried to do this in several different ways, but my code only got more and more complicated. Can anyone set me on the right path?
Thanks.