You need to use a separator for your columns.
Use this syntax:
CSVWriter writer = new CSVWriter(new FileWriter(file), ",", "", "\n");
Instead:
CSVWriter csvWrite = new CSVWriter(new FileWriter(file));
This sets the comma ( , ) as the field delimiter and the new line ( \ n ) as the line delimiter
Or simply
CSVWriter writer = new CSVWriter(new FileWriter(file), ",");
(,).
Excel (;).
pipe (|) (\t) ...