Solved RemoveElement in java