Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Authors
About the Cover Illustration
1. Introducing Kotlin
Chapter 1. Kotlin: what and why
1.1. A taste of Kotlin
1.2. Kotlin’s primary traits
1.2.1. Target platforms: server-side, Android, anywhere Java runs
1.2.2. Statically typed
1.2.3. Functional and object-oriented
1.2.4. Free and open source
1.3. Kotlin applications
1.3.1. Kotlin on the server side
1.3.2. Kotlin on Android
1.4. The philosophy of Kotlin
1.4.1. Pragmatic
1.4.2. Concise
1.4.3. Safe
1.4.4. Interoperable
1.5. Using the Kotlin tools
1.5.1. Compiling Kotlin code
1.5.2. Plug-in for IntelliJ IDEA and Android Studio
1.5.3. Interactive shell
1.5.4. Eclipse plug-in
1.5.5. Online playground
1.5.6. Java-to-Kotlin converter
1.6. Summary
Chapter 2. Kotlin basics
2.1. Basic elements: functions and variables
2.1.1. Hello, world!
2.1.2. Functions