在我的主要课程中
public static void main(String[] args) {
CSVWriter writer = new CSVWriter(new FileWriter("D:\\myfilefile.csv"), '\t');
recursiveLoop(writer, 10);
}
public void function recursive(CSVWriter writer, int index){
if (index == 0){
return;
}else{
String[] entries ="TEST#LINE#".split("#");
writer.writeNext(entries);
index--;
recursiveLoop(writer, index);
}
}
但是,当我打开我的 file.csv 时,什么都没有写!我究竟做错了什么 ?