All days
Day 02Module 1 · Kotlin Basics· 3–5 hrs
Kotlin Basics II — Collections, Functions, Lambdas, Null Safety
Arrays and lists, functions (including higher-order ones), lambdas, and Kotlin's famous null safety. This is where Kotlin starts to feel powerful and expressive.
0% done
Key concepts
- Array vs ArrayList vs List
- Function declarations & default arguments
- Higher-order functions
- Lambdas & trailing lambda syntax
- map / filter / forEach
- Nullable types (?), safe call (?.), Elvis (?:)
Lectures in this day
- 01
Array and ArrayList
An Array is a row of boxes with a size you decide at the start — you can't add more boxes later. An ArrayList is a stretchy row that grows and shrinks as you add or remove things. Use `listOf(...)` when you only need to read the list.
Real life · An egg tray with 30 slots — that's an Array (fixed size). A shopping bag you keep adding items to — that's an ArrayList (grows).kotlin