Hello Guys, I would like to know why in The loop number 2 “Play loop” when I name it “play” it gives me an error and I should name it “index” as the one above? Yaa the two loop are connected together but why I should name it “Index” ??
fun main(args: Array<String>) {
var hello = Array<String> (4) {""}
for (index in 0..3){
print("index [ $index ] = ")
hello[index] = readLine()!!
}
for (play in 0..3) {
println("Array [ $play]=" +hello[index] )
}
}