| 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!
|
 |
 |
|
|
subject: find duplicates
|
|
|