Convert .csv to .xls in Java

后端 未结 6 690
天涯浪人
天涯浪人 2020-12-09 05:48

Does anyone here know of any quick, clean way to convert csv files to xls or xlsx files in java?

I have something to manage csv files already in place and I need the

6条回答
  •  情歌与酒
    2020-12-09 06:09

    The tools in Excel are not adequate for what the OP wants to do. He's on the right track there. Excel cannot import multiple CSV files into different worksheets in the same file, which is why you'd want to do it in code. My suggestion is to use OpenCSV to read the CSV, as it can automatically correct for newlines in data and missing columns, and it's free and open source. It's actually very, very robust and can handle all sorts of different non-standard CSV files.

提交回复
热议问题