File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Code to get list of duplicate elements from ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Code to get list of duplicate elements from ArrayList" Watch "Code to get list of duplicate elements from ArrayList" New topic
Author

Code to get list of duplicate elements from ArrayList

Krishna Tota
Ranch Hand

Joined: Mar 22, 2008
Posts: 40
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

Joined: Aug 05, 2005
Posts: 3429
    
  12
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.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code to get list of duplicate elements from ArrayList
 
Similar Threads
List and set
How to store unique elements in List?
How to remove duplicate element from List
Collections
Duplicate Elements