JavaListclear

Removes all elements from the list.

Syntax

list.clear()