Explore alternatives to Java’s package private in Kotlin.
Baeldung Author
baeldung
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Convert Kotlin Array to Varargs
Filed under Kotlin-Java Interop
A quick and practical guide to converting Kotlin’s array into Java’s varargs.
Convert a Kotlin data class object to a Map
Filed under Kotlin Collections, Libraries
While a data class may be a useful strongly typed way to store date, we may wish to convert our data objects into a more dynamic structure, such as a Map. We look at a few solutions for converting between data classes and maps.
Kotlin Data Class With Optional Fields
Filed under Kotlin Classes and Objects
Learn how to create a class instance with optional fields
Error Handling for REST with Spring in Kotlin
Filed under Spring
A quick and practical guide to Spring error handling in Kotlin.
Remove a Character From a String in Kotlin
Filed under Kotlin Strings
When we need to remove characters from strings in Kotlin, there are a few extension functions we can use to help us. We look at the most common ways to produce a new string with a character removed.
Calling a Kotlin Function After a Delay
Filed under Kotlin Concurrency
Learn how to call a function with delay in Kotlin using a scheduler, thread, and coroutine
Count Occurrences of a Character in a String in Kotlin
Filed under Kotlin Strings
Learn various methods of counting occurrences of a specific character in a String
Break or Continue a Functional Loop in Kotlin
Filed under Kotlin Basics
A quick and practical guide to breaking/continuing a functional loop in Kotlin.
Kotlin Platform Types
Filed under Kotlin-Java Interop
Learn about platform types in Kotlin how to handle the nullability