You have created an array to hold three strings. When you run the code bellow, the compiler displays an error. Why does the code fail?
val names = arrayOf<String>(3)
names[3]= "Delta"
You have created an array to hold three strings. When you run the code bellow, the compiler displays an error. Why does the code fail?
val names = arrayOf<String>(3)
names[3]= "Delta"