//java原生的操作
1.MessageFormat:
String s = MessageFormat.format("{0} has {1} apples with him", "John", 10);
2.String.format:
String s = String.format("%1$s has %2$d apples with him", "John", 10);
//如果记录日志slf4j请使用
log.debug("{} has {} apples with him", "John", 10);
//{}作为占位符:placeholder