I am new to Java and am from Python. In Python we do string formatting like this:
>>> x = 4 >>> y = 5 >>> print(\"{0} + {1} = {2}\
Slf4j has MessageFormatter.format() that accepts {} without the argument number, just like Python. Slf4j is a popular logging framework, but you don't have to use it for logging to use MessageFormatter.
{}