empty mutable list kotlin
// Step 1: Import the required library
import java.util.ArrayList
// Step 2: Declare an empty mutable list
val emptyList: MutableList<String> = ArrayList()
// Optional Step: Add elements to the empty list
emptyList.add("Element 1")
emptyList.add("Element 2")
// Optional Step: Print the elements of the list
for (element in emptyList) {
println(element)
}