Home »
Code Examples »
Scala Code Examples
Scala - Using raw String interpolation Code Example
The code for Using raw String interpolation
// The raw String interpolation will allow you to
// print any symbols within your String.
println("Using raw interpolation")
val percentage: Double = 88.5
println(raw"You got\t$percentage")
/*
Output:
Using raw interpolation
You got\t88.5
*/
Code by IncludeHelp,
on August 8, 2022 03:27