This is the problem I am stuck in: 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. Incorporate this method into an applet that reads an integer value for side from the user and performs the drawing with the squareOfAsterisks method. This method should be called from the applet's paint method and should be passed the Graphics object from paint.
I am trying to learn Java on my own from a book, so far all the exercises had a similar example provided in the chapters except this one. Please help me.