如果会使用循环,用StringBuilder构造字符串吧无意识递归:在toString中使用 + this格式化输出:printf,format, Formatter类格式化: %[argument_index$] [ flags] [width] [.precision] conversionString.format正则表达式matches,split量词,贪婪,勉强,占有