How to remove an item from a list with java core