1.String.format()
String str = String.format("UPDATE %1$s SET %2$s WHERE %3$s", new Object[] {
"hello", "aa = bb", "cc = dd" });
System.out.println(str);
String类非常有用的方法积累,布布扣,bubuko.com
原文:http://blog.csdn.net/chx10051413/article/details/20791769