Practice: Dynamic Array Of Strings

Take out a piece of paper. We’ll be programming on paper.

Problem 1

Write a reallocate method for the DynamicArrayOfStrings class that increases the size of the instance variable holding the Strings.

This method must copy the values from the old array to the new array.

Problem 2

Write the

boolean add(String s);

method.