Created
April 26, 2020 14:31
-
-
Save gyugyu90/1e02a165434c30a7e03a7fd05b673f5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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