首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2012-11-09 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0java.lang.IndexOutOfBoundsException: Index: 0

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

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

发生这种错误一般是:

List list=new ArrayList();

list.get(1);

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

热点排行