title: Storing arrays in Set and avoiding duplicates
body: <pre><code>HashSet&lt;String[]&gt; boog = new HashSet&lt;String[]&gt;();
  boog.add(new String[]{"a", "b", "c"});
  boog.add(new String[]{"a", "b", "c"});
  boog.add(new String[]{"a", "b", "d"});
  </code></pre>
  
  <p>results in</p>
  
  <pre><code>[a, b, c]
  [a, b, d]
  [a, b, c]
  </code></pre>
  
  <p>where <code>[a,b,c]</code> is repeated, so the hash function is not working as expected. How would I go about overriding the Hash method for String arrays. Or for that matter, a generic array? Is there a better way to accomplish what I'm trying to do?</p>