title: What is the best way to remove duplicates in an Array in Java?
body: <p>I have an Array of Objects that need the duplicates removed/filtered.
  I was going to just override equals &amp; hachCode on the Object elements, and then stick them in a Set... but I figured I should at least poll stackoverflow to see if there was another way, perhaps some clever method of some other API?</p>