Storing integer values
No. 147
A container of fixed capacity holding integer values
Q: |
You may feel tired of bothering about fixed array sizes. This exercise set is about automating the process of enlarging arrays to accommodate new values. Implement a class
A skeleton project archive is available at:
Like in the previous exercise Junit
tests are being prepared but masked by a This skeleton project contains:
|
A: |
No. 148
Allow for variable capacity holding integer values
Q: |
In A container of fixed capacity holding integer values once a store has been created its capacity is fixed. We'd like to extend our class to support dynamic growth while adding new values. To achieve this goal follow the following steps:
Modify and add Junit tests accordingly to reflect the new behaviour. In particular you should test for correct capacity reallocation handling when adding larger numbers of values being added. |
A: |
|