Topics
Kotlin
About this topic: Articles tagged __TAG__
Showing 74 articlesRelated tags
Topics
Articles
Showing 74 articles
How-tos
Difference Between CoroutineScope and coroutineScope in Kotlin
This tutorial teaches the reader how CoroutineScope and coroutineScope work in Kotlin and what differentiates the two coroutine creators.
↗
How-tos
How to Add Items to Mutable and Immutable ArrayList in Kotlin
This article is about adding items to a mutable and immutable ArrayList in Kotlin. You will learn about different ways to do that.
↗
How-tos
When and Where to Use the Kotlin Companion Object
Kotlin companion object is equivalent to Java's static instance. This article teaches how to use the companion object in Kotlin to take the object-oriented programming approach.
↗
How-tos
How to Implement a Switch Case Statement in Kotlin
This article teaches how to write a Java-like switch-case statement in Kotlin. It will also show different ways in which we can use the Kotlin switch-case statement.
↗
How-tos
How to Initialize Array in Kotlin With Values
This article introduces the concept of how to initialize an array in Kotlin with values. We will be looking at different ways to initialize an array.
↗
How-tos
How to Format String in Kotlin
This article shows two ways to format string in Kotlin namely, string templates i.e using $ (dollar) sign and using String.format() method.
↗
How-tos
How to Use the by Keyword in Kotlin
The Kotlin by keyword is a new keyword introduced for delegation purposes. This article introduces the by keyword and its use in Kotlin.
↗
How-tos
How to Initialize Properties Using by Lazy and Lateinit in Kotlin
Kotlin allows property initialization with by lazy and lateinit keywords. This article sheds light on what they mean and how to use them in Kotlin.
↗
How-tos
How to Concatenate Strings in Kotlin
To concatenate two or more than two strings in Kotlin, we can use + (plus) operator, plus() method, String Builder, and String Templates.
↗
How-tos
How to Convert a Java File Code to Kotlin
Kotlin is now an official Android language. Hence, you might want to change your Java file to Kotlin. This article teaches you how to convert Java to Kotlin.
↗
How-tos
How to Add Items to a List in Kotlin
This article introduces different ways to add items to an existing list. We will go through each way to learn about adding a single item or an entire collection to a Kotlin list.
↗
How-tos
How to Use of the Secondary Constructors in Kotlin
This article introduces the concept of secondary constructors in Kotlin and how you can use it to initialize objects.
↗
How-tos
How to Get the Current Index of a forEach Loop in Kotlin
Knowing the current index of a loop allows us to perform various actions on a particular item of a collection. This article teaches you how to get the current index of a forEach …
↗
How-tos
How to Use setOnClickListener in Kotlin
This tutorial shows the reader how to use the setOnClickListener method to invoke an event in a Kotlin application.
↗
How-tos
How to Differentiate the Extension Functions in Kotlin
This tutorial explains the extension functions in Kotlin in detail, gives an example for each function, and explains how they vary.
↗
How-tos
How to Create an Empty Mutable List in Kotlin
This tutorial teaches the reader the different ways that they can use to create an empty mutable list in Kotlin.
↗
How-tos
How to Create and Execute Coroutines in Kotlin
This tutorial introduces the reader to coroutines and shows how they can be executed sequentially or concurrently using async- await() in Kotlin.
↗
How-tos
How to Parse JSON String to Object in Kotlin
This tutorial teaches the reader the different ways they can use to parse a JSON object to an object in Kotlin.
↗
How-tos
How to Get the Instance of an Object in Kotlin
This tutorial teaches the reader how to get the instance of an object at runtime using Kotlin.
↗
How-tos
How to Create Constants in Kotlin
This tutorial teaches the reader how to create constants, the naming convention used in constants, and how to include them in the application.
↗
How-tos
How to Use the reified Keyword in Kotlin
This tutorial teaches the reader how to use the reified keyword in Kotlin to access type information.
↗
How-tos
How to Get a Random Number in Kotlin
This tutorial teaches the reader the different ways they can use to generate a random number in Kotlin.
↗
How-tos
How to Convert List to Map in Kotlin
This tutorial teaches the reader the different ways that they can use to convert a List to a Map data structure in Kotlin.
↗
How-tos
How to Implicitly Infer the Type of Fail Method in JUnit 5
This tutorial teaches the reader how they can implicitly infer the type of the fail method in JUnit 5.
↗
No articles found
Try clearing the filters.