remove redundency in list of pairs



Hello,

I want to construct a list of pairs without dupliactes, not the key
value pairs, I just want to ensure that the pair (not ordered) is not
dupliacted in the list.

for example

method input: (3, 4), (5, 6), (4, 3), (6, 5)

method output: (3, 4), (5, 6).

I can do this manually, but is there any utility in the java language
itself ?

Bluedoze

.



Relevant Pages

  • adding unordered pairs without duplicates
    ... I want to construct a list of pairs without dupliactes, ... but is there any utility in the java language ... Bluedoze ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: remove redundency in list of pairs
    ... > I want to construct a list of pairs without dupliactes, ... declare a Set. ... Greetings, Leon. ... Prev by Date: ...
    (comp.lang.java.help)