Kotlin for Java Programmers
summary
Shows Kotlin running on multiple targets and demos actual commands like kotlinc -jvm and running .kts scripts to compile and script quickly; walks through concrete examples that compile and run: type inference, val/var immutability, string templates, default and named arguments, varargs plus the spread operator, ranges and steps, and collection pipelines vs lazy sequences; demonstrates smart casting, nullable types with safe call and Elvis operator, data classes (auto-generates toString/equals/hashCode), and extension functions compile to static methods — all examples execute as shown.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:30Create a fun main
- 2:00C compiler
- 4:00Code
- 9:00Functions
- 14:00Arguments
- 17:50imperative style
- 24:00for string
- 29:00null
- 34:00functional style
- 39:00static methods








