blob: 9c6c5963aeaf5de50cad74d7e346e70e4a156ce4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
package test
object stringInterpolation {
def main(args : Array[String]) : Unit = {
println("\{1} plus \{1} is \{1 + 1}")
val x = 1.1
println("We have a \{ x ;2.2f}% chance of success")
}
}
|