📅  最后修改于: 2022-03-11 14:56:39.446000             🧑  作者: 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();
}