© 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 
(1)
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 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.