I have already tried using a Set Collection to remove duplicates but this does not solve what i am asking here.
I am trying to accomplish the following task: I have a list
Integer [] list1 = {1,2,3,3};
i want to remove the duplicates but also I want to remove the matching pair, so the result i want is
{1,2}