Write a complete Java program called Shape. Your program must contain a void method called Square(), which
Fantastic news! We've Found the answer you've been seeking!
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 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:
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
# # # # # # # #
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: