Rob: Could you please explain the procedure with the arraylists a bit closer? So i have to add all of the Server-Array-Contents to one Arraylist and then subtract the contents of the Client-Array-Content via Collection.removeAll?
That would be the trick yes. And because Collection.addAll and removeAll only accept other Collections, you need to convert the arrays to some Collection. And that's where my other suggestion can be used.
As said in the API of Set#removeAll:
If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets.
And that's just what you want.
Joined: Oct 09, 2008
thank you very mutch, it works perfect. more simple than expected.