Skip to content

Instantly share code, notes, and snippets.

@gyugyu90
Created April 26, 2020 14:31
Show Gist options
  • Save gyugyu90/1e02a165434c30a7e03a7fd05b673f5d to your computer and use it in GitHub Desktop.
Save gyugyu90/1e02a165434c30a7e03a7fd05b673f5d to your computer and use it in GitHub Desktop.
fun main() {
val items = listOf("apple", "banana", "kiwifruit")
var index = 0
while (index < items.size) {
println("item at $index is ${items[index]}")
index++
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment