You create a brand new array of the appropriate size and then copy the
elements from the old array and release any pointers to the old array so
that it gets GC'ed when it comes time.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.