Kotlin tutorials

55 tutorials. Language basics for Android and JVM developers.

All Kotlin tutorials

Page 2 of 3
Using Gson library with Kotlin class and data class instances Learn how to use Gson to serialize and deserialize Kotlin class instances into JSON format Kotlin lambda explained with code examples Learn what are Kotlin lambda expressions with practical code examples Kotlin generics explained with code examples Learn what and how Kotlin generics work with practical examples Kotlin companion object explained with examples Learn what is a Kotlin companion object and how to use it Kotlin data class explained with easy to understand examples Learn how Kotlin data class works and when to use it Kotlin alternative to the Java Optional type Let's learn about Kotlin alternative to Java Optional type How to create a HashMap in Kotlin Let's learn how to create a HashMap type instance in Kotlin How to create Kotlin static function or method Let's learn how to define Kotlin static function or method Kotlin switch statement alternative Let's learn about the Kotlin switch statement alternative in this tutorial Kotlin uses of question mark explained Let's learn about the use of question mark for null safety in Kotlin Kotlin main method explained Let's learn about Kotlin main method and its role in Kotlin application Kotlin file extension explained - .kt, .kts, .ktm Let's learn about Kotlin file extensions and their use How to create Kotlin constants and static values Learn the best way to write constant values in Kotlin Kotlin reduce method explained Learn how the Kotlin reduce method allows you to iterate over a collection The Kotlin secondary constructor tutorial Learn how the Kotlin class secondary constructor works through practical examples The Kotlin constructor explained with examples Learn how the Kotlin class constructor works through practical examples How to fix unresolved reference issue in Kotlin and Android Studio Learn how to fix unresolved reference issue in Kotlin and Android Studio How to create enum constants in Kotlin Learn how to create modern enum constants in Kotlin How to use Kotlin Regex Learn how to use the Kotlin Regex class to find or replace matches The Kotlin varargs function parameter explained (with code examples) Learn how Kotlin varargs function parameter works with practical examples