Scala - Character Literals (Char and Single Unicode Character) Code Example

The code for Character Literals (Char and Single Unicode Character)

val store_char: Char = 'R'
val store_smile: Char = '☺'

// Printing the output
println(store_char)
println(store_smile)

/*
Output:
R
☺
*/
Code by IncludeHelp, on August 10, 2022 22:10

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.