how to create a list in kotlin code example
Example 1: kotlin list add
// Use mutable list
var mutableList1 = mutableListOf("Garlic","Oignon")
mutableList1.add("Bean")
Example 2: make list kotlin
val list = listOf<String>()
// Use mutable list
var mutableList1 = mutableListOf("Garlic","Oignon")
mutableList1.add("Bean")
val list = listOf<String>()