I have an array of integers, which I fill in one by one at runtime. I store a variable currentIndex, which is the index of the next empty element of the array. So, to add an integer to the array, I'd ...