W3cubDocs

/Kotlin

<init>

Platform and version requirements: JS (1.0), Native (1.0)
<init>()

Creates an empty ArrayList.

Platform and version requirements: Native (1.3)
<init>(initialCapacity: Int)
Platform and version requirements: JS (1.1)
<init>(initialCapacity: Int = 0)

Creates an empty ArrayList.

Parameters

initialCapacity - initial capacity (ignored)

Platform and version requirements: JS (1.0), Native (1.0)
<init>(elements: Collection<E>)

Creates an ArrayList filled from the elements collection.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-array-list/-init-.html