摘要: String str="我是{0},我来自{1},今年{2}岁,{3}"; String[] arr={"中国人","北京","22","谢谢"}; Matcher m=Pattern.compile("\\{(\\d)\\}").matcher(str); while(m.find()){ str=str.replace(m.group(),... 阅读全文
posted @ 2016-11-27 18:00 胡一生 阅读(985) 评论(0) 推荐(0)