/************************************************************************ 
 *  Array2D - Provides tools for manipulating a 2D array
 * 
 * author - YOUR NAMES GO HERE
 * @version - V1 - YOUR DATE GOES HERE
 ***********************************************************************/
public class Array2D
{
	private double [][] matrix;
	
	/************************************************************************ 
    * Explicit value constructor
	 * 
	 * @param inArray The array to use to create this Array2D object
	 ***********************************************************************/
	public Array2D(double [][] inArray)
	{
		if (inArray != null)
		{
			this.matrix = new double [inArray.length][];
			
			for (int ii = 0; ii < inArray.length; ii++)
			{
				if (inArray[ii] != null)
				{ 
					this.matrix[ii] = new double[inArray[ii].length];
					
					for (int jj = 0; jj < inArray[ii].length; jj++)
						this.matrix[ii][jj] = inArray[ii][jj];
				}
				else 
					this.matrix[ii] = null;
			}
		}
		else 
			this.matrix = null;
	}
	
	/************************************************************************ 
    * getAverage averages all of the values of this array.
	 *
	 * @return The average of the array elements
	 ***********************************************************************/

	public  double getAverage()
	{
		return 99999;
	}
	
	/************************************************************************
    * getColumnTotal sums all of the values in one column of this array.
	 * This method was named sumColumn in the worksheet
	 *
	 * @param col The number (0 based) of the col to sum
	 *
	 * @return The sum of the array elements in that column.  
	 *				If the row does not exist in matrix....YOU FILL IN THE REST.
	 ***********************************************************************/
	public  double getColumnTotal (int col)
	{
		return 99999;
	}
	
	/************************************************************************ 
    * getHighestInRow finds the largest value in one row of this array.
	 *
	 * @param row The number (0 based) of the row to find the largest
	 *
	 * @return The highest of the row array elements.  If the row does not exist
	 *         in matrix....YOU FILL IN THE REST.
	 ***********************************************************************/
	public  double getHighestInRow(int row)
	{
		return 99999;
	}
	
	/** **********************************************************************
    * getLowestInRow finds the lowest value one row of this array.
	 * This method was not in the worksheet, but is similar to getHighestInRow
	 *
	 * @param row The number (0 based) of the row to find the lowest
	 *
	 * @return The lowest of the row array elements.  If the row does not exist
	 *         in matrix....YOU FILL IN THE REST.
	 ***********************************************************************/
	public  double getLowestInRow(int row)
	{
		return 99999;
	}

	/************************************************************************
    * getRowTotal sums all of the values in one row of this array.
	 * This method was named sumRow on the worksheet
	 *
	 * @param row The number (0 based) of the row to sum
	 *
	 * @return The sum of the row array elements.  If the row does not exist
	 *         in matrix....YOU FILL IN THE REST.
	 ***********************************************************************/

	public  double getRowTotal(int row)
	{
		return 99999;
	}
	
	/************************************************************************
    * getTotal sums all of the values of this array.
	 *
	 * @return The sum of the array elements
	 ***********************************************************************/
	public  double getTotal()
	{
		return 99999;
	}

	/************************************************************************
	 * @param col The column to check
	 * @return true if the row exists in this array, false otherwise
	 ***********************************************************************/
    public boolean isCol(int col)
    {
	    // TODO Auto-generated method stub
	    return false;
    }
	/************************************************************************
	 * @param row The row to check
	 * @return true if the row exists in this array, false otherwise
	 ***********************************************************************/
    public boolean isRow(int row)
    {
	    // TODO Auto-generated method stub
	    return false;
    }
}