Image

Imagev3g4n wrote in Imagejava_dev

I'm hoping that none of you are getting annoyed with me asking so many questions.

So I have the constraint of having to expand an array without the user knowing (and without the use of Vector, whatever that is :P). Say I have an array called person or Person class.

If I want to do a deep copy with a for loop of my original array into a new bigger (and fancier :P) array, can I use the same name 'person'? If not, I imagine I am going to have some major problems with all of my methods which currently call person as the array.

Make sense?

So meh, if I can't put it into a "new" array, can I just make the array length a variable and just alter that if the user needs the array expanded?

And a hearty thanks to those of you who have helped me out thus far!