Remove Only One Item from a List (Android)
Clash Royale CLAN TAG #URR8PPP Remove Only One Item from a List (Android) I have a list: (x, y, y,z) (x, y, y,z) I have another list: (x, y) (x, y) You want to remove the items from the 1st list that belong also in the 2nd list. Ex: I want the result to be (y,z) (y,z) How do I do this? EDIT: If I use removeAll. The example list returns (z) You want to remove the items from the 1st list that belong also in the 2nd list. Edit your question. – mTak 7 mins ago Does order matter? For example, if the second list was (y, x) would you want the same outcome? – Tyler V 4 mins ago The result will be (z) not (y,z) – mTak 3 mins ago ...