Hi I have a small code where I have to pass a number which will be used to draw a square e.g. if I pass 3 then it would be: *** *** ***
However, I cannot seem to have a clue where I am going wrong, especially when I am trying to manipulate the drawString method. Any help is appreciated. Thanks. FULL CODE:
String strNumber; int number; strNumber = JOptionPane.showInputDialog( "Enter number to represent square side" ); number = Integer.parseInt( strNumber );