Kotlin
现代 Android 开发。
Kotlin is the language Google recommends for Android, and it runs everywhere Java runs. It is concise, protects you from null crashes and works side by side with Java code. This course starts from zero with Kotlin 2: values and string templates, null safety, if and when expressions, ranges and loops, functions with default and named arguments, then classes and data classes, collections and lambdas, extension functions, a gentle first look at coroutines and a glimpse of Jetpack Compose.
Every lesson is short and packed with quizzes, so you learn by doing.
- 课时
- 14
- 时长
- 2 小时
- 级别
- 初级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Write and run Kotlin programs with val, var and string templates
- Handle missing values safely with nullable types,
?.and?: - Write clear functions with default and named arguments
- Model data with data classes and transform collections with
filter,mapandgroupBy - Understand coroutines and read a simple Jetpack Compose screen
学习旅程
1 第 1 单元Kotlin basics
Your first program, val and var, null safety, when, ranges and functions.
0 / 52 第 2 单元Classes and collections
Data classes, collections and lambdas, coroutines and a first Compose screen.
0 / 53 第 3 单元Next steps
A full Android app, Kotlin Flow, server-side Kotlin and shared code.
0 / 4