arrayClear

arrayClear

> Functions

Removes all the elements of the list array.

Example:

Parameters
More information

In most cases, the code list = [] is equivalent to arrayClear(list). However, if you use final fields in a class, you cannot use = on them, and therefore not = [] either. In that case, arrayClear is the only easy way to empty a list.

Synonyms
Note