xxxxxxxxxx
// Creating a list
val myList = mutableListOf<Int>(1, 2, 3, 4)
println("Original list: $myList")
// Adding an element to the list
myList.add(5)
println("List after adding an element: $myList")
xxxxxxxxxx
// Use mutable list
var mutableList1 = mutableListOf("Garlic","Oignon")
mutableList1.add("Bean")