posted 18 years ago
Hi,
first of all, you could take a look how Sun did in the ArrayList source file.
Second, you make another array with for example twice the length of your full array and then you use arraycopy to transfert the data to the new one.
you could also do like that :
I hope it help,
Arno
[ May 26, 2006: Message edited by: Arno Reper ]
The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress