Java - Splitting a CSV file into an Array

前端 未结 4 1557
别跟我提以往
别跟我提以往 2021-01-19 14:38

I have managed to split a CSV file based on the commas. I did this by placing a dummy String where ever there was a \',\' and then splitting based on the dummy String.

4条回答
  •  [愿得一人]
    2021-01-19 15:23

    I would strongly recommend you not reinventing the wheel :). Go with one of the already available libraries for handling CSV files, eg: OpenCSV

提交回复
热议问题