We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a number sequence in an Arraylist:
1.589, 2.358, 6.486, 1.458, 1.458, 5.245...
What I would like to do is to remove numbers from arraylist that repeats themselves like number 1.458. I know that number repeats maximum twice. There are always 1 or more pair of objects that are the same.
But I want to remove not one of duplicated object, but all of them. I want to have sequence like this: 1.589, 2.358, 6.486, 5.245...
Is it possible to do?