while loop kotlin
snippet in kotlin

kotlin simple for loop

user4837

val names = listOf("Jack", "John", "Tim")
for(name in names){
	println(name)
}

while loop kotlin

user7940

for (item in collection) print(item)