For these problems, you need to use arrays not ArrayLists

9A

Write the class OliverPicsArray. This class encapsulates an array (not an ArrayList) of Pictures and provides methods to process the array.

The constructor takes an array of Pictures as a parameter and uses it to initialize the instance variable.

Provide the methods

Define and use a local constant for GAP. "Local" means you will define it in the draw method.

Provide Javadoc

For the draft, implement the the constructor and the draw() method. Include Javadoc

The pictures are in this zip, oliver_pics.zip. Download, unzip, and put the pictures in the Bluej project folder. Or use the pictures you downloaded for hw8

This homework is much the same as hw8a except it uses an array rather than an ArrayList. Which do you find easier -especially for the tallestLast method.

9A draft:
9A final:

9B

Write the class Keywords which has an array of Strings as an instance variable and methods to act on the array. Call the instance variable words

Provide a constructor that takes an array of Strings as a parameter and assigns it to the instance variable

Provide methods:

Here is the toString method. Copy it into your project.

    @Override
    public String toString()
    {
        return Arrays.toString(words);
    }

Provide Javadoc

For the draft, provide the instance variable, the constructor and the averageLength() method. Implement the other methods as stubs (including Javadoc). Remember that the Javadoc for a stub should reflect what the method will do in the final version not what it does in the draft.

9B draft:
9B final:

9C

Util2D creates an manages a 2d array of ints. It has a constructor that takes a 2d array as a parameter and assigns it to the instance variable. You write the whole class

Provide the constructor

Provide these methods

Provide Javadoc

For the draft, provide the constructor and the getSmallest method. Implement the other methods as stubs. Remember that a stub for a boolean method returns false. Provide Javadoc

9C draft:
9C final: