Answers for "list add method in kotlin"

5

kotlin list add

// Use mutable list
var mutableList1 = mutableListOf("Garlic","Oignon")  
mutableList1.add("Bean")
Posted by: Guest on April-21-2021
0

Kotlin add item to List

itemsList.toMutableList().add(item)
Posted by: Guest on October-31-2021

Browse Popular Code Answers by Language