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.7
43 students
5
91%
4
2%
3
0%
2
0%
1
7%
Written Reviews
There are no written reviews yet.