I have two ArrayList objects with three integers each. I want to find a way to return the common elements of the two lists. Has anybody an idea how I can achiev
ArrayList
public List getIntersectOfCollections(Collection first, Collection second) { return first.stream() .filter(second::contains) .collect(Collectors.toList()); }