现在的位置: 首页 > 综合 > 正文

java IndexOutOfBoundsException

2018年05月10日 ⁄ 综合 ⁄ 共 149字 ⁄ 字号 评论关闭

List<String> strList = new ArrayList<String>();

strList.get(0);

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

strList .size() is 0,you can not  invoke get (0).

抱歉!评论已关闭.