Java Bootcamp – Workbooks and Challenges
)}

Debugging Exercise 9

Goal: debug the LowerTriangular.java code.

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

Debugging


A lower triangular matrix is a 2D array with zeros above the main diagonal.

The goal is to convert a 2D array into a lower triangular matrix:

>>: [1, 0, 0]

>>: [8, 6, 0]

>>: [2, 4, 6]

However, your code produces:

>>: [0, 2, 3]

>>: [8, 0, 4]

>>: [2, 4, 0]

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.