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
Get step-by-step solutions from verified subject matter experts
