|
BTW, we're learning about ArrayLists now, but we can't use them for this HW. He wants us to learn how to do something like this without it.
I know that to remove an element in an array you have to do something like shift everything with a higher index to the left and then transfer what you want to a new array of size one less than the original, but I have trouble figuring out the code that does that. Just read the part before my code and let me know how you would go about writing such a method.
|