Programming Kotlin: Enhance your skills for Android development using Kotlin by Alexander Aronowitz & NLN lnc

Programming Kotlin: Enhance your skills for Android development using Kotlin by Alexander Aronowitz & NLN lnc

Author:Alexander Aronowitz & NLN lnc [Aronowitz, Alexander]
Language: eng
Format: azw
Published: 2020-10-04T00:00:00+00:00


val capitalA: Char = 'A'

But not all 136,690 characters can be entered from the keyboard. The second option is to use using escaped sequence with Unicode code \ u :

val unicodeCapitalA: Char = '\ u0041'

For the letter "A" there is a key on the keyboard, but for the character ॐ there is no key.

The only available option to represent such a symbol in the program is

use the character code in single quotes. To try this opportunity Optionally, create a new Kotlin file in the project. Enter the following into it code and run. (Delete the file when done by right clicking mouse over it in the project tool window and select Delete .)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.