And if you can use Java 8, then an even more compact solution is possible using String.join : output.write(String.join("\n", records).
確定! 回上一頁