previous
|
start
|
next
Answers
Use the
insert
and
remove
methods.
Allocating a new array and copying the elements is time-consuming. You wouldn't want to go through the process every time you add an element.
previous
|
start
|
next