占位符

目前只会一种

比如:

String str="我是{0},我来自{1}";
str=str.replace("{0}","bruceLee");
str=str.replcae("{1}","chn");
syso(str);
原文地址:https://www.cnblogs.com/bashala/p/3700474.html