List 的size是0时,get(0) 会报IndexOutOfBoundsException LIist list = new ArrayList(); list.get(0); // IndexOutOfBoundsException 这个时候的数组没有index,长度是0