Introduction
Preface
Getting started
Kotlin features
Hello, world
Hello, world (version 2)
The REPL
Two types of variables
The type is optional
Built-in types
Two notes about Strings
I/O
Control structures
if/then/else
for loops
while, do/while
when (like switch)
try/catch/finally
Classes and Objects
Constructors and members
Imports and packages
Class members
Getters and setters
Constructor default values
Secondary constructors
Open and final classes
Abstract classes
Interfaces
== and ===
Enumerations
A complete class
Data classes
Objects
Companion objects
Visibility modifiers
Functions
Extension functions
Infix functions
Anonymous functions
Passing functions around
vararg parameters
Nullability
Nullable types
Safe-call operator
Elvis operator
let operator
!! operator
Nullability example
Nullability summary
Collections
Array
List
Map
Set
Sequence methods
Map methods
Miscellaneous
A Swing example
Build tools
Idioms
An OOP example
An FP example
Command line
Android
Contributors
License
About
Published with GitBook
Miscellaneous
TODO
This chapter is TODO.
results matching "
"
No results matching "
"