Chapter 4
Kotlin
IN THIS CHAPTER
Understanding the structure of Kotlin programs
Making comments
Declaring variables and constants
Using mathematical operators
Working with branching and looping statements
Creating functions, data structures, and objects
When the world of mobile computing (smartphones and tablets) swept over the world, programmers wanted to create apps for these new devices. When the iPhone redefined the smartphone market, Google quickly released a similar operating system called Android.
Initially, Google endorsed Java as the favored language for creating Android apps. However, after various lawsuits involving Oracle (the owner of Java), Google looked for other ways to create Android apps. That’s when a company called JetBrains developed Kotlin (https://kotlinlang.org), a language similar to Java. Now Google has officially endorsed Kotlin as the preferred language ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access