Every variable in Kotlin has a type that determines what it can hold, and you can declare the type of a variable. Relying on Kotlin’s type inference is the best-practice way to keep your code clean and concise.
Strings are a fundamental data type in Kotlin. Manipulating them and using them with other variables is a crucial skill. This lesson has further prepared you for writing software programs in Kotlin.
In this lesson, you learned:
The difference between declared and inferred types.
How to define the type of a variable.
How to perform String interpolation.
In the next lesson, you’ll learn how to work with different data types using operators.
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: Demo
Next: Learn the Kotlin Language: Understand Types
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.