9A

Write a class called ArrayListFlowers. In the main method, do the following in the main method

Note: it is possible to pass Codecheck without using any of the ArrayList methods, but you will get no credit for that.

For the draft,

9A draft:
9A final:

9B

Complete the class StringArrayList. It contains methods that manipulate an ArrayList of Strings. It has an instance variable of an ArrayList of Strings. Call it list. Its constructor takes an ArrayList of Strings as a parameter. In addition to the Constructor, you need to implement the following methods

The methods

I have provided a toString method to aid testing. (This is why the instance variable must be called list.)

Provide Javadoc

For the draft, provide the instance variable, the constructor and the swap method. Include Javadoc

9B draft:
9B final:

9C

Complete the RectangleManager class. A RectangleManager manipulates an ArrayList of Rectangles.  It already has the instance variable declared (an ArrayList of Rectangles) and a toString method.

You will provide the following

Provide Javadoc

For the draft, provide the constructor and code the add() method. You will also need to import the ArrayList class from the Java library as well as the graphics classes. Provide Javadoc

9C draft:
9C final: