Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating unique list from diffrent list  RSS feed

 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Members,

I want to keep the unique list from the list of two list. I could so it from Set, but my problem is that I have to prepare a list myself. The following example will make it more clearer.
There are three list


I am populating both list in this way




This is my DTO




After doing this I am able to get two lists, one has unique elements while another has duplicated one. I want to create a list with unique ICDname but having all the disgnoseString with the same ICDname. It is a kind of Search in SQL as


I spent around 3 days but couldn't solve it !

I also tried this logic but failed !



Thanks in advance !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!