I assume this snippet is inside an action that gets called when you click the button? If so, the line you labeled "//Create mutable array" creates a new array each time you click - so when you enter "George" and click, a new array is created. The old array with "Fred" has already been destroyed.
__________________

Free Games!
|