how to fix java.lang.IndexOutOfBoundsException

后端 未结 7 1350
长发绾君心
长发绾君心 2020-12-10 23:58

Exception in thread \"main\" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604)

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-11 00:52

    You do not have any elements in the list so can't access the first element.

提交回复
热议问题