9A

Complete the NumberArray class. NumberArray encapsulates an int array. It has a constructor that takes an int array as a parameter. It has these methods to manipulate the array:

Provide Javadoc

For the draft, provide the implementation of the constructor and the getLast() method. Implement the other methods as stubs. A stub for a method with return type of boolean returns false. Provide all the Javadoc

9A draft:
9A final:

9B

Write a class TwoDUtil. TwoDUtil encapsulates a 2d array of Strings. It has a constructor which takes a 2d array of strings as a parameter.

It has these methods:

No starter file.

Provide Javadoc

For the draft, provide the constructor and initialize the instance variables. Implement the methods as stubs. Provide Javadoc

9B draft:
9B final:

9C

For this problem you will create a crude relief map. A relief map is a map indicating hills and valleys by the use of different colors.

Our map will represent a square area 150 miles on a side. We will assume the elevation is the same in each 10 square mile area.

The Relief Map class has a constructor that takes a 15 X 15 2d array of integers. Each element in the array represents the average elevation in an area 10 miles on a side.

Relief Map has these methods:

The map will look like this

""

For the draft, implement maxDifference()

9C draft:
9C final: