用星号输出一个正方形的问题!!
我是个JAVA的初学者,有这样一道题,我不知道如何下手,请各位帮帮忙!
write an applet that reads in the size of the a square and displays a hollow(中空) square of that size out of asterisks,by using drawString method inside your applet's paint method.Use an input dialog to read the size from the user.Your pragram should work for squares of all lengths of side between 1 and 20.