Multi-Dimensional Arrays Lab

Work with multi-dimensional arrays in Java.

Introduction:

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

Exam review

Instructions:

  1. Download the two java files: Array2D.java and Array2DTest.java to your /src directory. In most browsers/OSs, the easiest way to do this is by right-clicking/control-clicking on each of the links above and then selecting Save as… or Save link as.... Do not use a package statement at the top since this will be in the src folder directly.
  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 through Gradescope. There is no limit on the number of submissions.

NOTE: 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.