Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code to get list of duplicate elements from ArrayList

 
Krishna Tota
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I knnow that in list interface we can store duplicate elements by using method like

void add(int index,Object obj).

I want the code for rettriving only the duplicate elements from the list.

Please give the code for this


Thanks,
Krishna
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Krishna Tota:
Please give the code for this


Why don't you show us what you have tried so far. You won't learn as well if we just give you the answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic