Hello,

I want to delete duplicate in the array I have created, I have the following method now:
Add an element
Remove an element

Can you give me an idea of how I can implement the deleteduplicates method.

Thanks

Recommended Answers

All 2 Replies

For each element:
   if there is another element the same, remove it.

Thanks James!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.