Two-Dimensional Arrays Lab

Two di-men., too dimensional to flatten…

The goal of this lab is to gain experience working with two-dimensional arrays.

Instructions

  1. Create a new Eclipse project. Download and import the files Array2D.java and Array2DTest.java.
  2. Complete the unfinished methods in Array2D.java according to the provided JavaDoc comments.
  3. Once all of your methods are implemented and tested, submit your finished work to Gradescope .

Notice that the methods in Array2D.java use a return value of Double.NaN to indicate an error condition. Typically, it would make more sense to design these methods to throw exceptions.