The main purpose of this lab exercise is to use the debugger to uncover coding issues:

We will accomplish this goal by re-purposing last weeks lab.

I can't get this program to work. I hope you can help!

  • STEPS
    • Create a new Matrix project (the class name is still Matrix!)
    • Copy/paste the Matrix.java from above into a new class file.
    • Run the program, as before, use quoted parameters in main “3”, “4” =⇒ at least in BlueJ
    • The error that you get, will help you determine where to set a breakpoint so that you can run the debugger.
      • There are two separate problems you need to debug for this lab.
    • Describe the changes you make in the print statements that are in main().
    • I expect that moodle will be setup for this lab, so submit your updated Matrix.java file.