title: how to find and return objects in java hashset
body: <p>According to the HashSet javadoc, HashSet.contains only returns a boolean. How can I "find" an object in a hashSet and modify it (it's not a primitive data type)?</p>
  
  <p>I see that HashTable has a get() method, but I would prefer to use the set.</p>