public static void main(String[] args) {
int[] images={a.jpg,b.jpg,c.jpg,d.jpg};
int current=0;
image.setImageResource =(images[0]);
public void onClick(){
                image,setImageResource(images[++current%images.length]);}其中红色部分代码,current要自加到4才能使整个的值为1,然后不断自加,比如current值自加到20,整个的值就变为5了,超出了数组下标,这样不就出错了吗而实际情况不会超出数组下标,请教这行代码的实际运行机制Java图片