hi i have a slight problem with my code, i am looking to update all posisions in an array for example

private int [] [] ovl = new int [maxovl][4];

ovl [0] [0]+=dx;

ovl [0] [1]+=dy;

if(ovl [0] [0]-rad<0)

{

dx=-dx; // this reverses the ball away from the wall

ovl [0] [0]=rad;

}

now i was wondering if there was a simpler way than doing

ovl [0] [0]+=dx;

ovl [0] [1]+=dy;

ovl [1] [0]+=dx;

ovl [1] [1]+=dy;

ovl [2] [0]+=dx;

ovl [2] [1]+=dy;

ovl [3] [0]+=dx;

ovl [3] [1]+=dy;

and so on.

thanks for reading