You can use the raw interpolator if you want a String to be printed as is and without any escaping of literals.
println(raw"Hello World In English And French\nEnglish:\tHello World\nFrench:\t\tBonjour Le Monde")
With the use of the raw interpolator, you should see the following printed in the console:
Hello World In English And French\nEnglish:\tHello World\nFrench:\t\tBonjour Le Monde
Without the raw interpolator, \n
and \t
would have been escaped.
println("Hello World In English And French\nEnglish:\tHello World\nFrench:\t\tBonjour Le Monde")
Prints:
Hello World In English And French
English: Hello World
French: Bonjour Le Monde