Two-Dimensional Arrays
The goal of this lab is to gain experience working with
two-dimensional arrays.
Instructions
- Create a new Eclipse project. Download and import the
files Array2D.java
and Array2DTest.java.
- Complete the unfinished methods in
Array2D.java
according to the provided JavaDoc comments.
- Once all of your methods are implemented and tested, submit
your finished work
through Autolab. Autolab will
not perform any style checking for this lab. There is no limit on the
number of submissions.
Notice that the methods in Array2D.java
use a return
value of Double.MIN_VALUE
to indicate an error
condition. Typically, it would make more sense to design these methods
to throw exceptions.