String str=null; str=String.format("格式参数$的使用:%1$d,%2$s", 99,"abc"); // 格式化字符串 此处的是String.format,而不是str.format.