© Peter Späth 2019
Peter SpäthLearn Kotlin for Android Developmenthttps://doi.org/10.1007/978-1-4842-4467-8_5

5. Expressions: Operations on Data

Peter Späth1 
Leipzig, Germany

We already used expressions a couple of times. Whenever you need to assign a value to a variable, need function call parameters, or need to provide a value to some kind of language construct, you need an expression. Expressions also show up where you don’t expect them, and they can be ignored if we don’t need them.

Expression Examples

Expressions can be subdivided into different types: numerical expressions, boolean expressions, string and character expressions, expressions acting on bits and bytes, and a few more unclassified expressions. Before we start explaining them in ...

Get Learn Kotlin for Android Development: The Next Generation Language for Modern Android Apps Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.