In Java we would use `String.format`.
https://docs.oracle.com/javase/8/docs/api/java/lang/String.h...
https://docs.oracle.com/javase/8/docs/api/java/lang/String.h...
https://stackoverflow.com/questions/513600/should-i-use-java...
Edit: i do believe you that + is faster, as it doesn't need to parse the format string, but you should still always do benchmarks with JMH or they won't be accurate.
I wasn't sure anymore about how I'd do it in Java so I wrote "a language that looks like Java". Took the easy way out instead of having to actually look it up. I'm going to leave it as it is though but good to know ;-)