All Kotlin Tutorials

Using Gson library with Kotlin class and data class instances

Tag: Kotlin

Learn how to use Gson to serialize and deserialize Kotlin class instances into JSON format

Kotlin lambda explained with code examples

Tag: Kotlin

Learn what are Kotlin lambda expressions with practical code examples

Kotlin generics explained with code examples

Tag: Kotlin

Learn what and how Kotlin generics work with practical examples

Kotlin companion object explained with examples

Tag: Kotlin

Learn what is a Kotlin companion object and how to use it

Kotlin data class explained with easy to understand examples

Tag: Kotlin

Learn how Kotlin data class works and when to use it

Kotlin alternative to the Java Optional type

Tag: Kotlin

Let's learn about Kotlin alternative to Java Optional type

How to create a HashMap in Kotlin

Tag: Kotlin

Let's learn how to create a HashMap type instance in Kotlin

How to create Kotlin static function or method

Tag: Kotlin

Let's learn how to define Kotlin static function or method

Kotlin switch statement alternative

Tag: Kotlin

Let's learn about the Kotlin switch statement alternative in this tutorial

Kotlin uses of question mark explained

Tag: Kotlin

Let's learn about the use of question mark for null safety in Kotlin

Kotlin main method explained

Tag: Kotlin

Let's learn about Kotlin main method and its role in Kotlin application

Kotlin file extension explained - .kt, .kts, .ktm

Tag: Kotlin

Let's learn about Kotlin file extensions and their use

How to create Kotlin constants and static values

Tag: Kotlin

Learn the best way to write constant values in Kotlin

Kotlin reduce method explained

Tag: Kotlin

Learn how the Kotlin reduce method allows you to iterate over a collection

The Kotlin secondary constructor tutorial

Tag: Kotlin

Learn how the Kotlin class secondary constructor works through practical examples

The Kotlin constructor explained with examples

Tag: Kotlin

Learn how the Kotlin class constructor works through practical examples

How to fix unresolved reference issue in Kotlin and Android Studio

Tag: Kotlin

Learn how to fix unresolved reference issue in Kotlin and Android Studio

How to create enum constants in Kotlin

Tag: Kotlin

Learn how to create modern enum constants in Kotlin

How to use Kotlin Regex

Tag: Kotlin

Learn how to use the Kotlin Regex class to find or replace matches

The Kotlin varargs function parameter explained (with code examples)

Tag: Kotlin

Learn how Kotlin varargs function parameter works with practical examples