String java.text.MessageFormat.format(String pattern, Object... arguments)
int planet = 7;
String event = "a disturbance in the Force";
String result = MessageFormat.format(
"At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.",
planet, new Date(), event);
直接 写多个对象接可以实现。
最后
以上就是傲娇心锁最近收集整理的关于 Object... arguments 的参数形式。的全部内容,更多相关内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复