cancel
Showing results for 
Search instead for 
Did you mean: 

Eliminating the duplicated values

0 Kudos

Hi,

I have an array and i am filing this array with values which comes from defined function and these values are some time duplicated.

can any one tell me how can i eliminate them?

hope to hear from you.

Best regards

Yasir Noman

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Yasir,

What about using Hashtable instead?

Regards,

Marc

Former Member
0 Kudos

Collection without duplicates is Set, not Hashtable.

Set with ordering is java.util.LinkedHashSet (since JDK 1.4)

VS