CSVPrinter datas appears not separated in columns
问题 I'm trying to use this library commons-csv (1.5) for generating the csv file, i've make a simple program for seeing the result : String SAMPLE_CSV_FILE = "./sample.csv"; try ( BufferedWriter writer = Files.newBufferedWriter(Paths.get(SAMPLE_CSV_FILE)); CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.EXCEL .withHeader("ID", "Name", "Designation", "Company")); ) { csvPrinter.printRecord("1", "Name1 ", "CEO", "Google"); csvPrinter.printRecord("2", "Name2", "CEO", "Microsoft");