Question: 6.18 (Displaying a Square of Asterisks) Write a method squareOfAsterisks that displays a solid square (the same number of rows and columns) of asterisks whose
6.18 (Displaying a Square of Asterisks) Write a method squareOfAsterisks that displays a solid square (the same number of rows and columns) of asterisks whose side is specified in integer parameter side. For example, if side is 4, the method should display **** **** **** **** Incorporate this method into an application that reads an integer value for side from the user and outputs the asterisks with the squareOfAsterisks method.
SAMPLE RUN #7: java CharSquare
Interactive Session Standard Input Standard Error (empty) Standard Output Hide Invisibles
Highlight: NoneStandard Input OnlyPrompts OnlyStandard Output w/o PromptsFull Standard OutputAllShow Highlighted Only
Enteranintegerforthislengthofthesideofthesquare:4 Enterasinglecharactertodrawthesquarewith:#
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
