Topics
Kotlin
About this topic: Articles tagged __TAG__
Showing 74 articlesRelated tags
Topics
Articles
Showing 74 articles
How-tos
How to Sleep to Suspend a Thread's Execution in Kotlin
Learn how to pause Kotlin/JVM thread code with Thread.sleep or TimeUnit, and when to use coroutine delay or ScheduledExecutorService instead.
↗
How-tos
How to Convert a Kotlin Source File to a Java File
This article introduces how to convert a Kotlin source file to a Java file using Git commands. Learn effective methods for managing file conversions and ensuring compatibility in …
↗
How-tos
How to Create and Use Static Variables in Kotlin
Learn how to create and use static variables in Kotlin with our comprehensive guide. Discover the nuances of companion objects, best practices, and practical examples to enhance …
↗
How-tos
Differences Between val and var in Kotlin
This article explores the differences between `val` and `var` in Kotlin, focusing on variable declaration and mutability. Learn when to use each keyword to enhance your coding …
↗
How-tos
How to Get SimpleName in Kotlin
Learn how to get a class's SimpleName in Kotlin easily. This article covers methods like using the ::class syntax and reflection on class instances, similar to Java's …
↗
How-tos
Swift if Let Statement Equivalent in Kotlin
Discover how Kotlin's let and run functions serve as the equivalent of Swift's if let statement. This article explores their usage, syntax, and practical examples to help you …
↗
How-tos
Equivalent of getClass() for KClass
Discover how to retrieve a KClass reference in Kotlin, similar to Java's getClass() method. This article explores various methods including using ::class, instance references, and …
↗
How-tos
How to Suspend Function in Kotlin
Discover how to effectively use suspend functions in Kotlin coroutines. This article provides a comprehensive introduction to suspend functions, their definition, and practical …
↗
How-tos
How to Use forEach in Kotlin
This article explores the use of the forEach function in Kotlin, detailing its syntax and practical applications. Discover how to iterate over collections like lists, sets, and …
↗
How-tos
How to Use the Elvis Operator in Kotlin
Learn how to use the Elvis operator in Kotlin to handle nullability effectively. This article covers its functionality, provides practical examples, and explains how to implement …
↗
How-tos
How to Print to Console in Android Studio
Learn how to print messages to the console in Android Studio using Kotlin. This guide covers essential logging methods like Log.d, Log.i, and Log.e, along with advanced techniques …
↗
How-tos
How to Extend a Class Having Multiple Constructors in Kotlin
This tutorial demonstrates how to extend a class with multiple constructors in Kotlin using secondary constructors. Learn to create robust class hierarchies and improve your Kotlin …
↗
How-tos
How to Use of findViewById Function in Kotlin
Discover how to effectively use the findViewById function in Kotlin for Android development. This article explores its application in Activities and Fragments, offering practical …
↗
How-tos
How to Implement the Builder Pattern in Kotlin
Discover how to implement the Builder Pattern in Kotlin with this comprehensive guide. Learn about its advantages, see practical examples, and enhance your object creation process …
↗
How-tos
How to Getters and Setters in Kotlin
A property in Kotlin is accessed with getters and setters. This article introduces the concept of Kotlin set() and how we can use it to access properties in a Kotlin code.
↗
How-tos
How to Difference Between !! And ? Operators in Kotlin
The !! and ? operators are null safety operators in Kotlin. This article introduces the meaning and use of both these operators.
↗
How-tos
How to Use of Scoping Functions in Kotlin
This article introduces how to use the scoping function also in Kotlin. The article also demonstrates the use of other scoping functions, including run, let, apply, and with.
↗
How-tos
Everything About Kotlin Generics
Today, we will learn about Kotlin generics, what are they used for, and how to pass a specific type to a generic method.
↗
How-tos
How to Implement Null Check in Kotlin
We can use different ways to implement a null check in Kotlin. This article introduces how we can null check in Kotlin. We will also go through some ways to handle null in Kotlin.
↗
How-tos
How to Handle Exceptions in Kotlin
This article introduces the Kotlin throws keyword and how we can use it to handle exceptions in Kotlin.
↗
How-tos
Equivalent of Java Static Functions in Kotlin
Java has static methods that helps with memory management. But Kotlin does not have any static keyword, so what is the equivalent of Java static methods in Kotlin?
↗
How-tos
The Difference Between Operators is and as in Kotlin
This article talks about the difference between is and as operators in Kotlin. We will also go through how and when to use each one.
↗
How-tos
How to Use of Inline Functions in Kotlin
Kotlin allows handling higher functions efficiently using inline functions. In this article, we will go through everything we need to know about inline functions in Kotlin.
↗
How-tos
How to Filter a List in Kotlin
There are many ways to filer a list collection in Kotlin. This article lists the best ways to filter a Kotlin list.
↗
No articles found
Try clearing the filters.