Empty Mutable List Kotlin

[Solved] Empty Mutable List Kotlin | Kotlin - Code Explorer | yomemimo.com
Question : empty mutable list kotlin

Answered by : calrissian

val mutableList = mutableListOf<DataType>()
val mutableList : MutableList<DataType> = arrayListOf()
val mutableList : MutableList<DataType> = ArrayList()

Source : https://stackoverflow.com/questions/33278869/how-do-i-initialize-kotlins-mutablelist-to-empty-mutablelist | Last Update : Sun, 08 Aug 21

Answers related to empty mutable list kotlin

Code Explorer Popular Question For Kotlin