摘要: 第一种:使用%s占位,使用String.format转换 控制台输出: 我叫小明,年28岁。 第二种:使用{1}占位,使用MessageFormat.format转换 public class Test { public static void main(String[] args) { Strin 阅读全文
posted @ 2019-02-16 14:43 Java梦工厂 阅读(24319) 评论(0) 推荐(2) 编辑