第10行,数组越界了
System.arraycopy(c,2,d,2,c.length);
要么改成
System.arraycopy(c,0,d,0,c.length);
要么
System.arraycopy(c,2,d,2,c.length - 2);
或者根据你的需求,你这样copy的意思是从第二个元素开始复制c.length个,当然数组越界