posted 15 years ago
I would do it using , contains method. Some steps would be
1) using iterator traverse through second list which has less elements
2) get next element from second list
3) use contains method to check if that element exists in first list which is big one. If no then add it into temp list
4) Once loop got executed your temp list will have elements from second list which are not there from first list.
I hope this helps.
Thanks
Thanks,
Prasad Kumbhare
SCJP 5.0, SCWCD 5.0, SCBCD 5.0