- Make sure you have the geometrie resource. If necessary, see the Resources import webpage.
- The code below creates a list:
- Delete the Point in position 2 and watch the evolution of the the list. What happened?
Select Unreferenced objects option to change the display of the memory diagram. What can you conclude? - The items in positions 5 and 6 are free (set to null). Add a Point to position 6. What happens?
- In an iteration, add 10 points at the end of the list.
Select Unreferenced objects option. What do you notice? - In an iteration, delete the first 5 points. Has the capacity changed?
- Add at the end of the code the following statement: