title: How to get unique values from array
body: <p>I have an Array from which i want to remove Duplicate items.</p>
  
  <pre><code>for(int data1=startpos;data1&lt;=lastrow;data1++) {
      String movie_soundtrk=cells.getCell(data1,Mmovie_sndtrk_cl).getValue().toString();
      al.add(movie_soundtrk);
  }
  
  String commaSeparated=al.toString();
  String [] items = commaSeparated.split(",");
  String[] trimmedArray = new String[items.length];
  for (int i = 0; i &lt; items.length; i++) {
      trimmedArray[i] = items[i].trim();
  }
  
  Set&lt;String&gt; set = new HashSet&lt;String&gt;();
  Collections.addAll(set, trimmedArray);
  
  System.out.println(set);
  </code></pre>
  
  <p>But this is not giving me unique Values from Array.</p>
  
  <p>My Array:- <strong>{English, French, Japanese, Russian, Chinese Subtitles,English, French, Japanese, Russian, Chinese Subtitles}</strong></p>
  
  <p>Out Put :- [Japanese, Russian, French, Chinese Subtitles], Chinese Subtitles, [English, English]</p>