Learn several strategies of implementing the merge sort in Kotlin.
Baeldung Author
Ewane Enombe
Here's what I've written (so far):
Baeldung on Kotlin
- All
- Kotlin Strings (5)
- Kotlin Collections (4)
- Patterns (3)
- Libraries (2)
- Algorithms (2)
- Testing (1)
- Kotlin-Java Interop (1)
- Kotlin Numbers (1)
- Kotlin IO (1)
- Kotlin Functions (1)
- Kotlin Dates (1)
- Kotlin (1)
Quicksort in Kotlin
Filed under Algorithms
Explore a few variations of the quicksort algorithm in Kotlin.
Check if a Character Is Alphabetic or Not in Kotlin
Filed under Kotlin Strings
Explore various techniques to determine if a character is alphabetic in Kotlin.
Check Whether a Character Is a Vowel or Consonant in Kotlin
Filed under Kotlin Strings
Learn several strategies for determining if a char is a consonant or vowel in Kotlin.
The Facade Pattern in Kotlin
Filed under Patterns
Explore how to manage complexity with the facade pattern in Kotlin.
Check if a String Is a Palindrome in Kotlin
Filed under Kotlin Strings
Discover a few strategies for determining if a string is a palindrome in Kotlin.
The Adapter Pattern in Kotlin
Filed under Patterns
The article introduces the Adapter Pattern in Kotlin, a design pattern that enables collaboration between classes with incompatible interfaces. We use an Audio Player example to demonstrate how the pattern works.
The Chain of Responsibility Pattern in Kotlin
Filed under Patterns
Learn how to apply the Chain of Responsibility pattern in Kotlin with a practical example.
Convert Binary Number to Decimal and Vice Versa in Kotlin
Filed under Kotlin Numbers
Learn how to convert between binary and decimal numbers in Kotlin.
Kotest: Assert a List Has Elements with Specific Properties
Filed under Testing
Learn strategies for verifying properties on objects inside of lists with Kotest.
Converting a Map to a String in Kotlin
Filed under Kotlin Collections
Learn several strategies to convert Maps to Strings in Kotlin, including some techniques to create JSON representations.
Get Difference Between Two Lists in Kotlin
Filed under Kotlin Collections
Learn several ways of computing the difference between two lists in Kotlin.
Callback Functions in Kotlin
Filed under Kotlin Functions
Learn how to use Kotlin callback functions effectively.
Opt-in Requirements in Kotlin
Filed under Kotlin
Learn about Opt-in APIs in Kotlin, including how to use them and how to make your own.
Using the Gson TypeToken in Kotlin
Filed under Libraries
Explore how to deserialize JSON to generic Kotlin objects with the Gson TypeToken.
Convert Java to Kotlin
Filed under Kotlin-Java Interop
This article explores various ways of converting Java code to Kotlin code, including using IntelliJ IDE or Android Studio, an online tool called JavaInUse, and the advantages of Kotlin over Java. It also discusses the limitations of each method and provides recommendations for when to use them.
Calculate the Power of a Number in Kotlin
Filed under Algorithms
Learn how to calculate the power of a number in different ways, using Kotlin.
Using Lombok With Kotlin
Filed under Libraries
While Kotlin provides many features that remove the need for Lombok, we may wish to use Lombok with Java classes in Kotlin. We look at how this is possible and its limitations.
How to Serialize Arrays in Kotlin With Kotlinx.serialization
Filed under Kotlin Collections
Learn how data can be serialized using Kotlin’s kotlinx-serialization library.
How to Convert a Date Time String to Instant in Kotlin
Filed under Kotlin Dates, Kotlin Strings
Learn how to convert a date time string to Instant in Kotlin.
Serialize Kotlin Data Class With Default Values Into JSON
Filed under Kotlin IO
A quick and practical guide to serializing Kotlin classes to JSON with default values.
Common String Extension Functions in Kotlin
Filed under Kotlin Strings
Learn how to use several common extension functions for strings in Kotlin.