I am using the following code to write data to 3 different CSV files
FileWriter Outputdata_all = new FileWriter("Output_Sheet2.csv");
FileWriter Outputdata = new FileWriter("Output_Sheet3.csv");
FileWriter Index_data= new FileWriter("Output_Sheet1.csv");
It works fine ,but how can I change in the code so that the three files come as three sheets in a common output file.