title: How do I convert an array of strings to a array of unique values?
body: <p>In Java, how do I convert an array of strings to a array of unique values?</p>
  
  <p>If I have this array of Strings:</p>
  
  <pre><code>String[] test = {"1","1","1","2"}
  </code></pre>
  
  <p>And I want to end up with:</p>
  
  <pre><code>String[] uq = {"1","2"}
  </code></pre>