Kotlin Control Structures
Kotlin has the basic control structures you’d expect to find in a programming language, including:
- if/then/else-if/else
forloops- try/catch/finally
whileanddo..whileloops
It also has unique constructs, including:
whenexpressions, which are like improved Javaswitchstatements
I’ll demonstrate those in the following lessons.