Kotlin Notes Help

Characters

Characters are represented by the type Char.

Character literals go in single quotes: '1'.

Special characters start from an escaping backslash \.

If a value of character variable is a digit, you can explicitly convert it to an Int number using the digitToInt() function.

Last modified: 16 February 2024