Here is the code:
val w = 10
val s = "Yang"
println("Hello: %%%ds".format(w).format(s))
The magic is to format the format, ;-)
Here is the code:
val w = 10
val s = "Yang"
println("Hello: %%%ds".format(w).format(s))
The magic is to format the format, ;-)
0 comments:
Post a Comment