我是靠谱客的博主 傲娇心锁,这篇文章主要介绍 Object... arguments 的参数形式。,现在分享给大家,希望可以做个参考。

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 的参数形式。的全部内容,更多相关内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(421)

评论列表共有 0 条评论

立即
投稿
返回
顶部