i'm making an array of Point objects........
but getting the exception........




Point[] p = new Point[corpsDestroyed];
for(int j=ind+3,k=0; j<s.length(); j+=6,k++)
{
p[k].x = (int)(s.charAt(j)-48);
p[k].y = (int)(s.charAt(j+2)-48);

if(j == s.length() - 4)
break;
}




here "s" is a string of no.s n char........from where i m taking the x & y components.......
"ind+3"=index of the 1st no. in the string.........