how to read csv file without knowing header using java?

前端 未结 3 597
忘了有多久
忘了有多久 2020-12-22 09:16

i have to read CSV file in java, I googled it but i got the way to read using the headers; but i have no information of the column headers and number of columns available i

3条回答
  •  既然无缘
    2020-12-22 10:07

    You can assume every row to be of class String and read everything into an 2 dimensional array. Afterwards you could try to parse the strings into their appropriate Formats.

    But if you do not know the row data type this is only a guess.

提交回复
热议问题