title: Remove duplicate in a list which contains arrays
body: <p>I have a <code>list&lt;array[]&gt;</code> in Java, and I want to remove from it all duplicates.</p>
  
  <p>In addition, the array <code>[1,2]</code> is the same as array <code>[2,1]</code>.</p>
  
  <p>I want to use Set, but as I understand it, if I declare 2 arrays: <code>int[] array1 = {1, 2}</code> and <code>int[] array2 = {1,2}</code>, Java considers them as 2 different arrays. In addition, It doesn't help me in the case of <code>[1,2]</code> and <code>[2,1]</code></p>
  
  <p>How can I do it?</p>