9A
Every place on earth has an elevation either at, above, or below sea level. Elevations range from Mount Everest (29,035 feet above sea level) to the Challenger Deep in the Mariana Trench (36,070 feet below sea level)

Write a class SeaLevels to process an int array of elevations
The constructor takes an array of ints representing various elevations around the earth as a parameter
Provide the following methods
getCountBelowSeaLevel() gets the number of elevations below sea level (less than 0)getLowest() gets the lowest elevationgetAverage() get the average elevation. (The array may be empty)provide Javadoc
For the draft, provide the instance variable, the constructor and the getCountBelowSeaLevel()method
9B
Finish the StockExchangeArray class which manages Stock objects. . Its methods manipulate an array (not an ArrayList)
StockExchangeArray has an instance variable Stock[] Call the instance variable stocks. It has a constructor that takes an array of Stocks as a parameter and initializes the instance variable with it.
It has methods
public double totalValue() finds total value of all the Stocks in this StockExchangeArraypublic void swap(int index1, int index2) - swaps the element at index1 with the element at index2. If either index is out of bounds, do not changing anything.public String cheapest() gets the symbol for the Stock with the lowest price per share. If more than one Stock has the same low price, return the symbol for the first. public String toString() gets a string representation of the array - provided. (This is why the instance variable must be called stocks.)(You can assume the array is not empty)
Provide Javadoc
For the draft, implement the constructor and the cheapest method. cheapest is similar to the methods in 8c. That processed an ArrayList. This work with an array. If you used the enhanced for loop for that methods, 90% of your code will be the same. You can copy/paste.
9C
Util2DInteger 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 will write the whole class.
Provide the constructor and instance variable.
Provide these methods
getLargest() Gets the largest integer in the arraypublic int product() gets the product of the elements in the array. It would probably be easiest to initialize product to 1. [Note: product means multiply]last() Gets the element in the last column of the last row. Do not use a looppublic boolean contains(int target) Returns true if the target is in the array, otherwise false Provide Javadoc
For the draft, provide the constructor and the getLargest method. Implement the other methods as stubs. Remember that a stub for a boolean method returns false. Provide Javadoc. Remember the Javadoc should say what the method will do in the final not what it does in the draft.