title: Getting unique elements of List
body: <p>all I have list containing Duplicate values I want somehow to get only Unique values from it and store it another list or set.So that I can perform some operation on it.
  My code:</p>
  
  <pre><code>{
          List&lt;Integer[]&gt; list1 = new ArrayList&lt;Integer[]&gt;();
            list1.add(new Integer[] { 1,10 });
              list1.add(new Integer[] { 1,10 });
              list1.add(new Integer[] { 1,10 });      
              list1.add(new Integer[] { 2,10 });
              list1.add(new Integer[] { 1,10 });
              list1.add(new Integer[] { 3,10 });
  
          for(int i=0;i&lt;list1.size();i++)
          {
              System.out.println("I - 0 :"+list1.get(i)[0]+"\t I - 1 :"+list1.get(i)[1]+"\n");
          }
  
          Set&lt;Integer[]&gt; uniquelist = new HashSet&lt;Integer[]&gt;(list1);
  
          for(Integer[] number: uniquelist){
                System.out.println(number[0]+"\t"+number[1]);
              }
      }    
  </code></pre>
  
  <p>I want the result <code>{1,10;2,10;3,10}</code> to be in separate list.When i googled I got to know for unique we should use set as in <code>Set&lt;Integer[]&gt; uniquelist = new HashSet&lt;Integer[]&gt;(list1);</code> But after doing this I dont know how to access each elements Thanks in advance</p>
  
  <pre><code>Output:
  1   10
  2   10
  1   10
  3   10
  1   10
  1   10
  </code></pre>