© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
T. LaversLearn to Program with Kotlinhttps://doi.org/10.1007/978-1-4842-6815-5_7

7. Strings

Tim Lavers1  
(1)
Woonona, NSW, Australia
 

A lot of software deals with text in some form or another, and there are a couple of data types in Kotlin for this.

Char is used to represent symbols such as letters, digits, and punctuation marks. We can define a Char by writing it between single quotes, for example, 'a'. The uppercase and lowercase versions of a character are represented by distinct Chars. Apart from the so-called Latin characters that are on most computer keyboards, Chars can represent accented letters, symbols from languages all around the world, and mathematical ...

Get Learn to Program with Kotlin: From the Basics to Projects with Text and Image Processing 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.