• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unique elements list  RSS feed

 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have repeating elements,but I want to create a list of unique elements after scanning through all of them.
Suggest code.
 
Campbell Ritchie
Marshal
Posts: 56540
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We don't simply hand out code. Have a look through this Java™ Tutorials section, which micht give some useful hints.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out LinkedHashSet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!