Kotlin - Variables and Type System
You want to create a list that you can modify but keep the reference fixed. Which declaration is correct?
val to keep the reference immutable.mutableListOf creates a list that can be changed.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions