10A

You are to write a class Letters. It has an instance variable of an ArrayList of Pictures. (Be sure to specify a type parameter.) The constructor takes no parameters but must initializes the instance variable.

Provide methods to:

Provide Javadoc

Add these pictures of letters to your project folder.

image of letter w image of letter X image of letter y image of etter Z

For the draft, provide the instance variable and the constructor which initializes the instance variable. Implement the add method. Implement totalAreato return the area of the last Picture in Letters. Be sure it will work no matter how many pictures are in the ArrayList. (So you can not assume that there are 4 pictures.)

10A draft:
10A final:

10B

The class Integer2D has as an instance variable of a a 2-d array of ints. Call the instance variable matrix. It has a constructor that takes the number of rows and columns as parameters and creates a two dimensional array with the given number of rows and columns, fills it with random ints less that 10, and then assigns it to the instance variable. The row parameter is the first parameter. The constructor is started and provides a Random object that has been create with a seed. Use it to create the random numbers.

You can assume that rows and columns are > 0

Add these methods:

A toString method is provided.

Provide Javadoc.

The Javadoc for the constructor is incorrect. Replace it with this

    /**
     * Constructor for objects of class Integer2D
     * @param rows the number of rows the Integer2D is to have
     * @param columns the number of columns the Integer2D is to have
     */

Also use this for the Javadoc for the provided toString

    /** 
     * Gets a string represntation of this object
     * @return a string represntation of this object
     */

For the draft, provide the instance variable and complete the constructor. Code the method min to return the smallest of all the numbers in the last row. Write the Javadoc for what the method will do in the final

10B draft:
10B final:

10C

Create a class String2D. Its constructor takes a 2D array of Strings as a parameter. Each element is one word.

Code the constructor and these methods:

Provide Javadoc.

For the draft, provide the instance variable and the constructor. Code the getCharacterCount method

10C draft:
10C final: