myanmarlinks
6/8/2019 - 11:47 AM

For Loop Kotlin

For Loop Kotlin

val myLists = listOf("Sun", "Mon", "Tue", "Wed", "Thu", "Fri")
val myArray = arrayOf("Aung Aung", "Maung Maung", "Kaung Kaung", "Hlaung Hlaung")
for (myList in myLists) {
    println(myList)
}
for (i in myArray.indices) {
    println(myArray[i])
}