作用是对值进行拼接 String s1 = "a"; String s2 = "b"; String result = MessageFormat.format("{1} {2}",s1,s2); result 的值将为a b