Kotlin for Java Programmers
summary
Kotlin compiles to Java bytecode and JavaScript and is shown running via the kotlinc compiler REPL and as scripts (.kts scripts). Examples demonstrate type inference, val versus var immutability, default and named arguments, the spread operator for varargs, nullability with ? and safe calls, and concise string templates. The demo uses by lazy for deferred computation, shows when pattern matching, extension functions, data classes, companion objects for static members, and an infix lambda-based DSL that builds fluent robot commands.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 4:51Create a Script
- 10:32Multiline Strings
- 15:07Functions
- 21:50Variables
- 24:42For Loops
- 32:55Null Type
- 34:59Lambdas
- 36:43Extension Methods
- 38:09Classes
- 41:00Static Methods
- 44:00Lazy delegates








