Question: JAVA help Write a program that draws a pyramid of blocks of any given height, like this for height 4: Note that each block is
JAVA help
Write a program that draws a pyramid of blocks of any given height, like this for height 4:

Note that each block is a pair of square brackets.
The program must use a recursive method to draw the pyramid.
Hint: The recursive method should do two things: Make a recursive call, and print one line of the pyramid.
Hint: Each line of the pyramid is a sequence of spaces followed by a sequence of blocks.
Hint: Use two parameters for the recursive method: one that holds the number of spaces to print before the blocks, and one that holds the number of blocks to print.
Transcribed image text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
