Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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
Download course materials from Github
Previous: Learn the Kotlin Language: Learn Null Next: Instruction 1