Hi, when I run the removeAt() part code with 3 items in the array, I run into an ArrayIndexOutOfBoundsException, I think in the for loop of removeAt(), we should use i < count-1, instead of i<count, does this make sense?
Yes, as the count will become the length of the array (after each insert operation) & we are trying to reduce the length by 1 post the removeAt method, so the right solution is to use count -1 in the for loop.