`

java格式化MessageFormat{0},{1}

    博客分类:
  • java
阅读更多

 

String text="hello {0},hehe{1}";

MessageFormat mf=new MessageFormat(text);

 

String value=MessageFormat.format(new Object[]{"adobe","goole"});

System.out.println(value);

// hello adobe ,hehe google

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics