JAVA字符串格式化-String.format()的使用

http://blog.csdn.net/lonely_fireworks/article/details/7962171

 

String content = "hello";

String time = "2015-05-14"

String advance = "15"

String url ="http://www.baidu.com"

String QQ_REMIND_URL="http://qzs.qq.com/snsapp/app/bee/widget/open.htm#content=%s&time=%s&advance=%s&url=%s";

String.format(QQ_REMIND_URL, content, time, advance, url)

posted @ 2015-05-13 14:41  cornucopia  阅读(154)  评论(0编辑  收藏  举报