📅  最后修改于: 2022-03-11 14:52:05.696000             🧑  作者: Mango
try {
FileWriter writer = new FileWriter(path);
String[] allData = {"an","example","array"};
String rowInfo = String.join(",", allData); // return "an,example,array"
writer.append(rowInfo);
} catch (IOException e) {
e.printStackTrace();
}