Home »
Code Examples »
Scala Code Examples
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