Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Code to get list of duplicate elements from ArrayList  RSS feed

 
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
Boost this thread!