File file=new File(filename);
try {
FileWriter fw = new FileWriter(file);
BufferedWriter bw=new BufferedWriter(fw);
for(int i=0;i<26;i++){
for(int j=0;j<10;j++){
bw.write(String.valueOf(po[i][j]));
bw.write(",");
}
bw.newLine();
}
bw.close();
fw.close();
} catch (IOException e1) {
e1.printStackTrace();
}
java将二维数组写入csv文件
最新推荐文章于 2022-06-22 11:57:27 发布