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.
Rob Prime wrote:Perhaps you can play around with the bulk operators: addAll, removeAll and retainAll. You may need to use some extra collections for that to work, because these methods modify the original.
Really Good Hint . and i am wondering how you are point out exactly Everytime