I see Kotlin has a List
List geeks = Ar
Let me explain some use-cases : let's create an immutable(non changeable) list with initializing items :
val myList = listOf("one" , "two" , "three")
let's create a Mutable (changeable) list with initializing fields :
val myList = mutableListOf("one" , "two" , "three")
Let's declare an immutable(non changeable) and then instantiate it :
lateinit var myList : List
// and then in the code :
myList = listOf("one" , "two" , "three")
And finally add some extra items to each :
val myList = listOf("one" , "two" , "three")
myList.add() //Unresolved reference : add, no add method here as it is non mutable
val myMutableList = mutableListOf("one" , "two" , "three")
myMutableList.add("four") // it's ok