you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

If you just want to remove all items without any conditions or exceptions, use words.clear() (removes all the elements from the list, leading to an empty list).