Link to home
Start Free TrialLog in
Avatar of jespersahner
jespersahner

asked on

Removing doublettes from a collection/array

Hi!

Does Java have a method for removing doublettes from a collection/array?

Regards,
Jesper
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Add the m toa Set
Avatar of sciuriware
sciuriware

He means:  create a Set from your collection and ................ de doublettes will vanish.

;JOOP!
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jespersahner

ASKER

->CEHJ: Thanks!
:-)
Why a grade of B? This answer was perfect!

;JOOP!
that'll still leave the dupes in your original collection/array btw.