title: How do I remove identical words from two separate text files using HashMaps in Java?
body: <p>I am working on taking out connecting words (conjunctions) from a book file in Java, so only words of substance remain. I am able to read the information of the book.txt file, split it into tokens, remove punctuation, and sort by how many times the words are said. However, I am not able to figure out how to compare this book data with another file of these conjunctions mentioned earlier. I've thought of putting each connecting word into a HashMap, but the number values and words together just don't seem right to me. Does anyone have any recommendations on how to do this efficiently? I am still a beginner programmer :)</p>
  <p>Thank you!</p>