Kotlin List & Mutable List tutorial with examples

In this tutorial, I will show you many methods and functions to work with List & MutableList in Kotlin. You’re gonna know:

  • Introduction to Kotlin List
  • How to create, initialize, access, update, remove items in a MutableList
  • How to combine multiple Lists, get subList of a List in Kotlin
  • Ways to iterate, reverse, find items in a Kotlin List

Related Posts:
Kotlin – Sort List of custom Objects
Kotlin Queue tutorial with examples
Kotlin HashMap tutorial with examples

Read More

Kotlin – Sort List of custom Objects

In this tutorial, I will show you several useful ways to sort List of custom Objects for Ascending and Descending order in Kotlin. You’re gonna know how to:

  • sort List of Objects by one field or multiple fields
  • use your custom Comparator to sort List of Objects
  • implement Comparable interface to make sorting List of Objects more convenient

Related Posts:
Kotlin List & Mutable List tutorial with examples
Kotlin – Compare Objects with Comparable Example

Read More