Splitting error- IndexOutOfBoundsException

前端 未结 3 1591
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 23:07

I got stuck with an issue, that I can\'t seem to solve. When splitting I should be able to get id, name, check by setting row[0], row[1], row[2]. Strangely onl

3条回答
  •  悲哀的现实
    2021-01-24 23:43

    Probably in the time:

    String[] row = line.split(",");
    

    was called, there was no comma (,) in the line of the file/stream you're trying to read.

提交回复
热议问题