ArrayList

constructor(initialCapacity: Int = 10)(source)

creates an empty list with the requested non-negative capacity; the default is 10.

Parameters

initialCapacity

initial backing capacity, not the list's initial size.

Type Parameters

T

element type.