java - String matching operation -
 I have two strings (they can be anything) like   I set   The above two sentences, for example, should produce the result     set a  I'm a boy  and < Code> I'm a man  where  I'm one  is normal My job is to find common words with two stars.   to store the data & lt; String & gt; , but it only stores unique values, so my question is, how can I get general words from two strings?   {"I", "am", "a"} , that is, the set of general words for both sentences.    
 & lt; String & gt;  Better use that stores the frequency number for each word.   
 
Comments
Post a Comment