Professional Documents
Culture Documents
► Starting with the original five entries, what does myList contain after
executing myList.add(w, 6)?
0 1 2 3 4 5 6
a b c d e
0 1 2 3 4 5 6
22 33 45 47 66
5
An array has a fixed size
► If we need a larger list, we are in trouble
When array becomes full
► Move its contents to a larger array (dynamic expansion)
► Copy data from the original array to a new location
► Manipulate names so new location keeps name of
original array