java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 你索引越界了 ArrayList 得存值问题 ,意思是你用的arraylist实例中,size是0,就是长度为0 但你却引用了超过这个0的范围,其实类似数组超界