Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2827
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2013-10-23 15:58 -0700 |
| References | <ca6512ad-67f1-43e1-8aea-a8a7b5641872@googlegroups.com> <pgsb691cp899c3chl2llioj58luh7nu17r@4ax.com> |
| Message-ID | <5db27a04-a306-4201-8aaf-018939535807@googlegroups.com> (permalink) |
| Subject | Re: How to remove duplicate values in an array. |
| From | Lew <lewbloch@gmail.com> |
Roedy Green wrote: > miss.smileyfish@... wrote, quoted or indirectly quoted someone who said : > >I have some code to build an object elementData that stores a list of ints = > >in an array and also keeps track of a boolean unique that determines if dup= > >licates are allowed in a list. I have written a small method to search out = > >duplicates and remove them, but for some reason it is not working. I am not= > > sure if the problem is with the method itself or the placement of the call= > > to the removeDuplicates method. > > The lazy way to do this is it use an ArrayList which has a method for > removing. Even lazier is to insert them into a Set. -- Lew
Back to comp.lang.java.help | Previous | Next — Previous in thread | Find similar
How to remove duplicate values in an array. miss.smileyfish@gmail.com - 2013-10-12 22:18 -0700
Re: How to remove duplicate values in an array. Steven Simpson <ss@domain.invalid> - 2013-10-13 10:00 +0100
Re: How to remove duplicate values in an array. Joerg Meier <joergmmeier@arcor.de> - 2013-10-13 12:09 +0200
Re: How to remove duplicate values in an array. Roedy Green <see_website@mindprod.com.invalid> - 2013-10-21 20:34 -0700
Re: How to remove duplicate values in an array. Lew <lewbloch@gmail.com> - 2013-10-23 15:58 -0700
csiph-web