Question: Write a Java Applet program with a squareOfAsterisks function that displays a solid square of asterisks whose side is specified in integer parameter side .
Write a Java Applet program with a squareOfAsterisks function that displays a solid square of asterisks whose side is specified in integer parameter side.
For example, if side is 4, the function displays
* * * *
* * * *
* * * *
If the user enters a negative number for side or a number greater than 50, throw an Exception(validate the data)
Not write a code just for 4 sides. You should put any sides which not greater than 50.
Save your program as squareOfAsterisks.java source file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
