title: HashSet Collisions in Java
body: <p>I have a program for my Java class where I want to use hashSets to compare a directory of text documents.  Essentially, my plan is to create a hashSet of strings for each paper, and then add two of the papers hashSets together into one hashSet and find the number of same 6-word sequences.</p>
  
  <p>My question is, do I have to manually check for, and handle, collisions, or does Java do that for me?</p>