A collection is a group of items. Kotlin provides data structures such as Arrays and Collections to represent such data.
An Array is a data structure that enables you to store a collection of the same data type in one variable. For instance, arrays can store things like a list of phone numbers, characters of the English alphabet, or days of the month. While other data types can handle collections of items, they have different properties from arrays. These properties make different types of collections better suited for specific use cases.
In this lesson, you’ll learn:
The purpose of arrays in Kotlin.
How to create an array that contains a specific type.
The purpose and use of Lists, Sets, Maps, and Sequences.
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Learn the Kotlin Language: Learn Null
Next: Instruction 1
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.