Kotlin tutorials

55 tutorials. Language basics for Android and JVM developers.

All Kotlin tutorials

Page 3 of 3
The Kotlin range operator explained with example code Learn how Kotlin range operator works with practical examples The Kotlin for loop explained with example code Learn how a for loop works in Kotlin with practical examples The Kotlin interface abstraction explained Learn how the interface abstraction works in Kotlin The Java implements keyword replacement in Kotlin Learn how Kotlin has adapted the Java implements keyword Kotlin internal visibility modifier explained Learn how Kotlin internal visibility modifier works in this tutorial Kotlin foreach method explained with code examples Learn how Kotlin foreach method works with practical code examples How to create static variables and functions in Kotlin Learn how to create static variables and functions in Kotlin classes and objects Kotlin string interpolation feature explained (with code examples) Learn about the Kotlin string interpolation feature here Kotlin elvis operator (?:) explained Learn how to handle the null value in conditionals using the elvis operator How to check type in Kotlin that's similar to Java instanceof operator Learn Kotlin's equivalent to the Java instanceof operator Kotlin type conversion methods for type objects Let's learn how to convert data type using methods from type objects Kotlin cast - how to cast Kotlin object using the is and as operator Let's learn how to cast Kotlin object from one type to another Kotlin when keyword explained (with code examples) Learn how Kotlin when expression works with pragmatic code examples Kotlin ternary operator equivalent Create a conditional expression in Kotlin using alternatives to the ternary operator Handling exceptions (errors) in Kotlin using the try catch statement Learn how you can create a smarter Kotlin program by using the try catch statement