Debugging Exercise 4
Goal: debug the Pyramid.java
code.
From Java Bootcamp Resources
-> Module 2
-> 8. Exception Handling
-> Debugging Workbooks
open the folder, exercise-four
.
Debugging
The goal is to construct a diagonal:
>>:*
>>: *
>>: *
>>: *
>>: *
>>: *
>>: *
>>: *
>>: *
>>: *
The starter code prints the following:
>>: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
It's hard to keep track of two counters (i
and j
). So, use breakpoints to visualize the runtime. Then, it will be clear how to use i
and j
to achieve the desired result.
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.