KotlinListadd

Adds the specified element to the end of this list.

Syntax

list.add(element) / list.add(index, element)