更新时间:2021-06-30 19:20:50
coverpage
Title Page
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Installation and Working with Environment
Introduction
Creating Kotlin Android project
How to do it...
There's more...
How to use Gradle to run Kotlin code
How to run a Kotlin compiled class
How it works...
How to build a self-executable JAR with Gradle and Kotlin
Reading console input in Kotlin
Converting Java code to Kotlin and vice versa
How to write an idiomatic logger in Kotlin
Escaping for Java identifiers that are keywords in Kotlin
Disambiguating using the "as" keyword to locally rename the clashing entity
Doing bit manipulations in Kotlin
Or
and
xor
inv
shl
shr
ushr
Parsing String to Long Double or Int
Converting String to Long
Converting string to Long using string.toLongOrNull()
Converting with special radix
Parsing string to Long with special radix
Using String templates in Kotlin
There’s more...
Control Flow
Assigning result to an expression using the if keyword
Using range with the when expression
Using when with custom objects