if(size <= data.length)
for(H = size; H > I; H--)
{
data[H] = data[H-1];
}
data[I+1] = newb;
size++;
Clearly I am getting an OutofBounds exception at this point... I was just wondering if anyone had any suggestions. For instance, should I return size to the print function? The reason I ask is because this doesn't seem necessary when I delete. The summary table doesn't contain extra blanks when I print after removing elements.
ETA: (Sorry for missing info "size" is my counter for the size of the array, and "I" is my position indicator.)
This post has been edited by jhar131: 31 August 2010 - 10:32 AM

New Topic/Question
Reply




MultiQuote








|