This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java in General and the fly likes find duplicates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "find duplicates" Watch "find duplicates" New topic
Author

find duplicates

rrmanthena raju
Greenhorn

Joined: Nov 01, 2004
Posts: 7
i have two arrays which contains strings
i want to create new array which contains elments that are in array[1] not in second array[2]
plese tell me better solution
(its similar to a-b)
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could create two Collections, then call removeAll(Collection c) on one, passing the other.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

"plese tell me better solution" - a better solution than what? What have you tried?

I'm moving this to the intermediate forum where its a better fit. Please post your replies there.

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: find duplicates
 
It's not a secret anymore!