Kotlin Add Element To Array

[Solved] Kotlin Add Element To Array | Kotlin - Code Explorer | yomemimo.com
Question : kotlin add element to array

Answered by : rosie-b

val list: MutableList<String> = ArrayList()
list.add(3, "Hello")
// Adds Hello as the third item in list
list.add("Goodbye")
// Adds Goodbye to the end of list

Source : | Last Update : Sat, 30 May 20

Answers related to kotlin add element to array

Code Explorer Popular Question For Kotlin