Java Bootcamp – Workbooks and Challenges
)}

Debugging Exercise 7

Goal: debug the Matrix.java code.

From Java Bootcamp Resources -> Module 2 -> 8\. Exception Handling -> Debugging Workbooks open the folder, exercise-seven.

Debugging


Using a nested loop, the goal is to convert a matrix (2D array) of zeros:

>>: [0, 0, 0]

>>: [0, 0, 0]

>>: [0, 0, 0]

to the following:

>>: [0, 1, 2]

>>: [0, 1, 2]

>>: [0, 1, 2]

However, the current code crashes.

Use breakpoints to visualize the runtime. Watching the output line by line will help you debug the problem.

Good Luck!

Feedback Summary
4.8
39 students
5

92%
4

3%
3

0%
2

0%
1

5%
Written Reviews
There are no written reviews yet.