Question: Java Programming 2. Task: Use nested for loops statements to draw empty boxes of any character (input from user). The boxes have the same number

Java Programming

2. Task: Use nested for loops statements to draw empty boxes of any character (input from user). The boxes have the same number of rows and columns (input from the user; valid range: 5 to 21). Test for errors in input (including type)

SAMPLE OUTPUT:

Do you want to start(Y/N): y

How many chars/last row? n

Not an integer! Try again! How many chars/last row? fgfgfg

Not an integer! Try again! How many chars/last row? 7.6

Not an integer! Try again! How many chars/last row? 34

ERROR! Valid range 5 - 21. How many chars/last row? 7

What character? k

kkkkkkk

k k

k k

k k

k k

k k

kkkkkkk

Do you want to continue(Y/N): y

How many chars/last row? y

Not an integer! Try again! How many chars/last row? 9

What character? #

#########

# #

# #

# #

# #

# #

# #

# #

#########

Do you want to continue(Y/N): n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!