For Loop in Kotlin

Easily loop through items.

Need to loop through an array, list, or collection? Kotlin has a nice, convenient for loop. See here:

        for (i in 1..100) {
            d("daniel", "is is $i")

The variable i will be updated every iteration, starting at 1 and running to 100.

Kotlin When Statement

More Tutorials

Build a Ridesharing Android App - Part 1

Getting started is sometimes the hardest part.


Add a click listener in Kotlin.

Android Login Layout

Let users sign in.