若是須要把多個字符串放在一塊兒, 用一個定界符分隔,可使用靜態join 方法:String all = String.join(" / ", "S", "M", "L", "XL");// all is the string "S / H / L / XL"字符串