I am trying to figure out if there is an easy way to count the number of words that appear in a small paragraph (# 1) and a small paragraph (# 2).
Typically, Im determines how much overlaps in these paragraphs are word for word. Therefore, if (# 1) contains the word "happy" and (# 2) contains the word "happy", which will be like the value +1.
I know that I could use String.contains() for every word in (# 1) applied to (# 2). But I was wondering if there is anything more efficient that I could use
source share