Question: Write a complete Java program called Shape. Your program must contain a void method called Square(), which makes use of a for loop to print
Write a complete Java program called Shape. Your program must contain a void method called Square(), which makes use of a for loop to print a box pattern using the hash symbol as shown below. The integer value for the size of the box must be passed as a parameter from the main method to the method Square() and this value must be stored in the parameter variable called n. For the purpose of this question, when this method is called in the main program it must produce the 8 by 8 box pattern shown below:
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
Step by Step Solution
There are 3 Steps involved in it
Heres an example of a Java program that fulfills your requirements ja... View full answer
Get step-by-step solutions from verified subject matter experts
