Java Bootcamp – Workbooks and Challenges
)}

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.8
39 students
5

92%
4

3%
3

0%
2

0%
1

5%
Written Reviews
There are no written reviews yet.