Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
Kotlin is a statically typed programming language designed to interoperate with Java and fully supported by Google on the Android operating system.
Based on Big Nerd Ranch’s popular Kotlin Essentials course, this guide shows you how to work effectively with the Kotlin programming language through hands-on examples and clear explanations of key Kotlin concepts and foundational APIs. Written for Kotlin 1.2, this book will also introduce you to JetBrains’ IntelliJ IDEA development environment.
Whether you are an experienced Android developer looking for modern features beyond what Java offers or a new developer ready to learn your first programming language, the authors will guide you from first principles to advanced usage of Kotlin. By the end of this book, you will be empowered to create reliable, concise applications in Kotlin.
Introducing Kotlin1 Your First Kotlin Application2 Variables, Constants, and Types3 Conditionals4 Functions5 Anonymous Functions and the Function Type6 Null Safety and Exceptions7 Strings8 Numbers9 Standard Functions10 Lists and Sets11 Maps12 Defining Classes13 Initialization14 Inheritance15 Objects16 Interfaces and Abstract Classes17 Generics18 Extensions19 Functional Programming Basics20 Java Interoperability21 Building Your First Android Application with Kotlin22 Introduction to Coroutines23 Afterword Appendix: More Challenges