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