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

Comments and Discussions!

Load comments ↻






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