Kotlin - Loops and Ranges
Which of the following is the correct way to print both index and value from a list
names using withIndex() in Kotlin?names using withIndex() in Kotlin?for ((i, name) in names.withIndex())."$i: $name" shows index and value clearly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions