List of Listings
Chapter 1. Kotlin: what and why
Chapter 2. Kotlin basics
Listing 2.1. “Hello World!” in Kotlin
Listing 2.2. Using string templates
Listing 2.3. Simple Java class Person
Listing 2.4. Person class converted to Kotlin
Listing 2.5. Declaring a mutable property in a class
Listing 2.6. Using the Person class from Java
Listing 2.7. Using the Person class from Kotlin
Listing 2.8. Putting a class and a function declaration in a package
Listing 2.9. Importing the function from another package
Listing 2.10. Declaring a simple enum class
Listing 2.11. Declaring an enum class with properties
Get Kotlin in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.