占位符

时间:2014-07-22 23:07:54   收藏:0   阅读:216

目前只会一种

比如:

mamicode.com,码迷
String str="我是{0},我来自{1}";
str=str.replace("{0}","bruceLee");
str=str.replcae("{1}","chn");
syso(str);
mamicode.com,码迷

 

占位符,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!