`

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

    博客分类:
  • java
 
阅读更多

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

发生这种错误一般是:

List list=new ArrayList();

list.get(1);

list数组length为0,而你get(1),没有1这个索引

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics